summaryrefslogtreecommitdiff
path: root/lingucomponent/source/thesaurus
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-03 16:28:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-03 16:28:58 +0100
commitc4de35ab55f7782646ddd322092f9e1326451aa1 (patch)
tree3ee773f1f369da4fee273a7498664d2f9945fd59 /lingucomponent/source/thesaurus
parent931aa1bfcbd2d1459f8b923a37574371515f8243 (diff)
fix this leak again post-merge
Diffstat (limited to 'lingucomponent/source/thesaurus')
-rw-r--r--lingucomponent/source/thesaurus/libnth/nthesimp.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
index 675acfb12ca4..161da6afef04 100644
--- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
+++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
@@ -108,7 +108,6 @@ Thesaurus::Thesaurus() :
Thesaurus::~Thesaurus()
{
-
if (aThes)
{
for (int i = 0; i < numthes; i++)
@@ -138,8 +137,10 @@ Thesaurus::~Thesaurus()
aTNames = NULL;
if (pPropHelper)
+ {
pPropHelper->RemoveAsPropListener();
- delete pPropHelper;
+ delete pPropHelper;
+ }
}
@@ -686,6 +687,12 @@ void SAL_CALL Thesaurus::dispose()
bDisposing = sal_True;
EventObject aEvtObj( (XThesaurus *) this );
aEvtListeners.disposeAndClear( aEvtObj );
+ if (pPropHelper)
+ {
+ pPropHelper->RemoveAsPropListener();
+ delete pPropHelper;
+ pPropHelper = NULL;
+ }
}
}