]> granicus.if.org Git - php/commitdiff
- Fix sugg only if it exists...
authorPierre Joye <pajoye@php.net>
Tue, 9 Mar 2004 01:57:53 +0000 (01:57 +0000)
committerPierre Joye <pajoye@php.net>
Tue, 9 Mar 2004 01:57:53 +0000 (01:57 +0000)
ext/enchant/enchant.c

index 4aa73c4e20b9b7ecee1fa33ffc64f941575bdd26..0428a18ad0f4143cee62bdf48b751856b256aebe 100755 (executable)
@@ -531,8 +531,9 @@ PHP_FUNCTION(enchant_dict_quick_check)
                        for (i = 0; i < n_sugg; i++) {
                                add_next_index_string(sugg, suggs[i], 1);
                        }
+                       enchant_dict_free_suggestions(pdict->pdict, suggs);
                }
-               enchant_dict_free_suggestions(pdict->pdict, suggs);
+
 
                RETURN_FALSE;
        }