[PATCH] Fix memory leaks
Brad Sowden
code at sowden.org
Fri Dec 30 14:29:34 PST 2011
---
sw/source/ui/misc/glosbib.cxx | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx
index fff2a2c..3df5186 100644
--- a/sw/source/ui/misc/glosbib.cxx
+++ b/sw/source/ui/misc/glosbib.cxx
@@ -294,6 +294,7 @@ IMPL_LINK( SwGlossaryGroupDlg, DeleteHdl, Button*, pButton )
{
if( **it == sEntry )
{
+ delete *it;
pInsertedArr->erase(it);
bDelete = sal_False;
break;
@@ -310,6 +311,7 @@ IMPL_LINK( SwGlossaryGroupDlg, DeleteHdl, Button*, pButton )
{
if( (*it)->GetToken(0, RENAME_TOKEN_DELIM) == sEntry )
{
+ delete *it;
pRenamedArr->erase(it);
bDelete = sal_False;
break;
@@ -357,6 +359,7 @@ IMPL_LINK( SwGlossaryGroupDlg, RenameHdl, Button *, EMPTYARG )
{
if( **it == sEntry )
{
+ delete *it;
pInsertedArr->erase(it);
pInsertedArr->push_back(new String(sNewName));
bDone = sal_True;
--
1.7.7.4
--------------080006030208060300090303--
More information about the LibreOffice
mailing list