summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-03 04:13:32 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-03 04:35:13 +0100
commitc95d4a7701a34c53459bd5d8e66574f13c758014 (patch)
tree0ef1d54a89bd45a73c8ebcf52e92b72eec66d06e /sfx2
parentea4555100a9079f1729afabdd7046d1826b052fd (diff)
coverity#705720: fix memory leak
Change-Id: I374f22ae6cc20c14adb99cd9bc6da1f830067861
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/menu/mnumgr.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/menu/mnumgr.cxx b/sfx2/source/menu/mnumgr.cxx
index b085e37740c5..c4e0ee26e092 100644
--- a/sfx2/source/menu/mnumgr.cxx
+++ b/sfx2/source/menu/mnumgr.cxx
@@ -167,6 +167,7 @@ PopupMenu* InsertThesaurusSubmenu_Impl( SfxBindings* pBindings, Menu* pSVMenu )
aThesLookUpStr = pStrItem->GetValue();
nDelimPos = aThesLookUpStr.SearchBackward( '#' );
}
+ delete pItem;
if (aThesLookUpStr.Len() > 0 && nDelimPos != STRING_NOTFOUND)
{
// get synonym list for sub menu