diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-05-17 11:13:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-05-20 09:47:54 +0100 |
commit | 983d1145fcb9b5d7279d34fad006d3a30286dd2c (patch) | |
tree | a9be7260f42ec5a1f996b09312b480c801bc6332 /lingucomponent | |
parent | ff96f70fde003dbb54a8ec153a8cfe1f78bdfbd5 (diff) |
guard final release better post possible clear
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/spellcheck/spell/sspellimp.cxx | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index 55490eb6d082..84af1870b02a 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx @@ -76,8 +76,8 @@ using ::rtl::OString; /////////////////////////////////////////////////////////////////////////// -SpellChecker::SpellChecker() : - aEvtListeners ( GetLinguMutex() ) +SpellChecker::SpellChecker() + : aEvtListeners(GetLinguMutex()) { aDicts = NULL; aDEncs = NULL; @@ -88,31 +88,29 @@ SpellChecker::SpellChecker() : numdict = 0; } - SpellChecker::~SpellChecker() { if (aDicts) { - for (int i = 0; i < numdict; i++) + for (int i = 0; i < numdict; ++i) { - if (aDicts[i]) delete aDicts[i]; + delete aDicts[i]; aDicts[i] = NULL; } delete[] aDicts; } aDicts = NULL; numdict = 0; - if (aDEncs) delete[] aDEncs; + delete[] aDEncs; aDEncs = NULL; - if (aDLocs) delete[] aDLocs; + delete[] aDLocs; aDLocs = NULL; - if (aDNames) delete[] aDNames; + delete[] aDNames; aDNames = NULL; - if (pPropHelper) + if (xPropHelper.is()) pPropHelper->RemoveAsPropListener(); } - PropertyHelper_Spell & SpellChecker::GetPropHelper_Impl() { if (!pPropHelper) |