summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorCaolán McNamara <cmc@openoffice.org>2010-05-24 10:18:45 +0100
committerCaolán McNamara <cmc@openoffice.org>2010-05-24 10:18:45 +0100
commit06ab23297b84d0168d27e6dd0d9b0423117be075 (patch)
tree3753632c2e14b2b78a16feb1554480bab94fba8d /lingucomponent
parent75d28100c435d5ced6ccdb4d7920abe3e56bf8a9 (diff)
cmcfixes75: #i111791# use hunspell api to free list
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 8486f4fb38fd..0cb6ad8ec3da 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -452,17 +452,14 @@ Reference< XSpellAlternatives >
count = pMS->suggest(&suglst, (const char *) aWrd.getStr());
if (count) {
-
aStr.realloc( numsug + count );
OUString *pStr = aStr.getArray();
- for (int ii=0; ii < count; ii++)
+ for (int ii=0; ii < count; ++ii)
{
- // if needed add: if (suglst[ii] == NULL) continue;
OUString cvtwrd(suglst[ii],strlen(suglst[ii]),aEnc);
pStr[numsug + ii] = cvtwrd;
- free(suglst[ii]);
}
- free(suglst);
+ pMS->free_list(&suglst, count);
numsug += count;
}
}