diff options
Diffstat (limited to 'lingucomponent/source/thesaurus/libnth/nthesimp.cxx')
-rw-r--r-- | lingucomponent/source/thesaurus/libnth/nthesimp.cxx | 11 |
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; + } } } |