summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dochdl/gloshdl.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-03 10:09:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-03 16:30:31 +0100
commit2b862165fac771f69c22aba61993e53abf76540f (patch)
treea304cd77d4a7db87179b1de7bc02c6e8db25f4f0 /sw/source/uibase/dochdl/gloshdl.cxx
parent74e26e0b7a9903259912b8cf7092b0252b74a2f2 (diff)
coverity#1242499 Resource leak
Change-Id: Ie1de3270723e36f7fd4bfdc4192745c521c61ea4
Diffstat (limited to 'sw/source/uibase/dochdl/gloshdl.cxx')
-rw-r--r--sw/source/uibase/dochdl/gloshdl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx
index 7c368a1e9f22..7b17c840f150 100644
--- a/sw/source/uibase/dochdl/gloshdl.cxx
+++ b/sw/source/uibase/dochdl/gloshdl.cxx
@@ -217,11 +217,11 @@ bool SwGlossaryHdl::CopyOrMove( const OUString& rSourceGroupName, OUString& rSou
const OUString& rDestGroupName, const OUString& rLongName, bool bMove )
{
SwTextBlocks* pSourceGroup = rStatGlossaries.GetGroupDoc(rSourceGroupName, false);
-
SwTextBlocks* pDestGroup = rStatGlossaries.GetGroupDoc(rDestGroupName, false);
if (pDestGroup->IsReadOnly() || (bMove && pSourceGroup->IsReadOnly()) )
{
delete pDestGroup;
+ delete pSourceGroup;
return false;
}