diff options
Diffstat (limited to 'patches/OOO_1_1_2/lingucomponent-memleaks.diff')
-rw-r--r-- | patches/OOO_1_1_2/lingucomponent-memleaks.diff | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/patches/OOO_1_1_2/lingucomponent-memleaks.diff b/patches/OOO_1_1_2/lingucomponent-memleaks.diff deleted file mode 100644 index 8c474c25a..000000000 --- a/patches/OOO_1_1_2/lingucomponent-memleaks.diff +++ /dev/null @@ -1,57 +0,0 @@ ---- lingucomponent/source/spellcheck/myspell/affixmgr.cxx.~1.12.14.1.~ Fri May 7 11:48:19 2004 -+++ lingucomponent/source/spellcheck/myspell/affixmgr.cxx Sun Jun 6 10:34:16 2004 -@@ -763,7 +763,7 @@ - char * AffixMgr::get_compound() - { - if (! compound ) return NULL; -- return mystrdup(compound); -+ return compound; - } - - // utility method to look up root words in hash table ---- lingucomponent/source/spellcheck/myspell/suggestmgr.cxx.~1.7.14.3.~ Fri May 7 11:48:19 2004 -+++ lingucomponent/source/spellcheck/myspell/suggestmgr.cxx Sat Jun 5 17:08:29 2004 -@@ -375,21 +375,28 @@ - rp->astr, rp->alen); - for (int k = 0; k < nw; k++) { - sc = ngram(n, word, glst[k].word, NGRAM_ANY_MISMATCH); -- if (sc > thresh) { -- if (sc > gscore[lp]) { -- if (guess[lp]) free (guess[lp]); -- gscore[lp] = sc; -- guess[lp] = glst[k].word; -- lval = sc; -- for (j=0; j < MAX_GUESS; j++) -- if (gscore[j] < lval) { -- lp = j; -- lval = gscore[j]; -- } -- } else { -- free (glst[k].word); -- } -- } -+ if (sc > thresh) -+ { -+ if (sc > gscore[lp]) -+ { -+ if (guess[lp]) free(guess[lp]); -+ gscore[lp] = sc; -+ guess[lp] = glst[k].word; -+ glst[k].word = NULL; -+ lval = sc; -+ for (j=0; j < MAX_GUESS; j++) -+ { -+ if (gscore[j] < lval) -+ { -+ lp = j; -+ lval = gscore[j]; -+ } -+ } -+ } -+ } -+ free (glst[k].word); -+ glst[k].word = NULL; -+ glst[k].allow = 0; - } - } - } |