summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-02 19:17:46 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-02 19:17:46 +0000
commit5da36eca033840e9b059cccc1dffdee944b63a00 (patch)
treef00d579d83df4c2ddfd806ae5c08b3c29f46b7e4 /lingucomponent
parent240f54797eb97b10466891916c3bffd49fb152fa (diff)
INTEGRATION: CWS geordi2q14 (1.12.36); FILE MERGED
2004/01/29 17:20:04 hr 1.12.36.1: #111934#: merge CWS ooo111fix2
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx21
1 files changed, 13 insertions, 8 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 3e34f420b1d9..6db0c034205d 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sspellimp.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: khendricks $ $Date: 2003-06-24 19:48:04 $
+ * last change: $Author: hr $ $Date: 2004-02-02 20:17:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -125,6 +125,10 @@ BOOL operator == ( const Locale &rL1, const Locale &rL2 )
SpellChecker::SpellChecker() :
aEvtListeners ( GetLinguMutex() )
{
+ aDicts = NULL;
+ aDEncs = NULL;
+ aDLocs = NULL;
+ aDNames = NULL;
bDisposing = FALSE;
pPropHelper = NULL;
numdict = 0;
@@ -133,20 +137,21 @@ SpellChecker::SpellChecker() :
SpellChecker::~SpellChecker()
{
-
- for (int i = 0; i < numdict; i++) {
- if (aDicts[i]) delete aDicts[i];
- aDicts[i] = NULL;
+ if (aDicts) {
+ for (int i = 0; i < numdict; i++) {
+ if (aDicts[i]) delete aDicts[i];
+ aDicts[i] = NULL;
+ }
+ delete[] aDicts;
}
- if (aDicts) delete[] aDicts;
aDicts = NULL;
+ numdict = 0;
if (aDEncs) delete[] aDEncs;
aDEncs = NULL;
if (aDLocs) delete[] aDLocs;
aDLocs = NULL;
if (aDNames) delete[] aDNames;
aDNames = NULL;
- numdict = 0;
if (pPropHelper)
pPropHelper->RemoveAsPropListener();
}