diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-03 16:28:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-03 16:28:58 +0100 |
commit | c4de35ab55f7782646ddd322092f9e1326451aa1 (patch) | |
tree | 3ee773f1f369da4fee273a7498664d2f9945fd59 /lingucomponent/source/spellcheck | |
parent | 931aa1bfcbd2d1459f8b923a37574371515f8243 (diff) |
fix this leak again post-merge
Diffstat (limited to 'lingucomponent/source/spellcheck')
-rw-r--r-- | lingucomponent/source/spellcheck/spell/sspellimp.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index 88ab0bf1c413..31bcadce6d0b 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx @@ -107,6 +107,11 @@ SpellChecker::~SpellChecker() aDLocs = NULL; delete[] aDNames; aDNames = NULL; + if (pPropHelper) + { + pPropHelper->RemoveAsPropListener(); + delete pPropHelper; + } } PropertyHelper_Spelling & SpellChecker::GetPropHelper_Impl() @@ -594,6 +599,12 @@ void SAL_CALL SpellChecker::dispose() bDisposing = sal_True; EventObject aEvtObj( (XSpellChecker *) this ); aEvtListeners.disposeAndClear( aEvtObj ); + if (pPropHelper) + { + pPropHelper->RemoveAsPropListener(); + delete pPropHelper; + pPropHelper = NULL; + } } } |