summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-05-03 15:39:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-05-04 12:23:52 +0200
commitd038d1f5ee0d24a5ad739d5e91015f90fd09b02e (patch)
tree3d541e7ce009cb64c3fb7d2d7b1918abfafe3aec /sw
parent90df301f6d4e7ab0b660d9e39c6fe639ef5ae348 (diff)
coverity#1435273 Resource leak in object
Change-Id: I781b2d6f6b550e5b381c041a27d282c4dca9d6dd Reviewed-on: https://gerrit.libreoffice.org/53805 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/envelp/label1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx
index 58be1b68c62c..b4e8de82bac9 100644
--- a/sw/source/ui/envelp/label1.cxx
+++ b/sw/source/ui/envelp/label1.cxx
@@ -135,8 +135,8 @@ SwLabDlg::SwLabDlg(weld::Window* pParent, const SfxItemSet& rSet,
if ( !aMakes.empty() )
ReplaceGroup_( aMakes[nLstGroup] );
- if (m_pExampleSet)
- m_pExampleSet->Put(aItem);
+ if (m_xExampleSet)
+ m_xExampleSet->Put(aItem);
AddTabPage("format", SwLabFormatPage::Create, nullptr);
AddTabPage("options", SwLabPrtPage::Create, nullptr);