| Index: chrome/third_party/hunspell/src/hunspell/affentry.cxx
|
| ===================================================================
|
| --- chrome/third_party/hunspell/src/hunspell/affentry.cxx (revision 15859)
|
| +++ chrome/third_party/hunspell/src/hunspell/affentry.cxx (working copy)
|
| @@ -59,8 +59,9 @@
|
| appnd = NULL;
|
| strip = NULL;
|
| if (opts & aeUTF8) {
|
| - for (int i = 0; i < 8; i++) {
|
| - if (conds.utf8.wchars[i]) free(conds.utf8.wchars[i]);
|
| + for (int i = 0; i < numconds; i++) {
|
| + if (conds.utf8.wchars[i])
|
| + free(conds.utf8.wchars[i]);
|
| }
|
| }
|
| #ifdef HUNSPELL_EXPERIMENTAL
|
| @@ -396,7 +397,7 @@
|
| appnd = NULL;
|
| strip = NULL;
|
| if (opts & aeUTF8) {
|
| - for (int i = 0; i < 8; i++) {
|
| + for (int i = 0; i < numconds; i++) {
|
| if (conds.utf8.wchars[i]) free(conds.utf8.wchars[i]);
|
| }
|
| }
|
|
|