summaryrefslogtreecommitdiff
path: root/ext/enchant
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2004-03-09 01:57:53 +0000
committerPierre Joye <pajoye@php.net>2004-03-09 01:57:53 +0000
commit451e295d099884f9a1cdac6face13fa5793fbf53 (patch)
tree8d16a7dc7e288a7eb8aec54b47ec059dce5f0172 /ext/enchant
parent3093399928fafe2b441148ed6fb7e06c38574452 (diff)
downloadphp-git-451e295d099884f9a1cdac6face13fa5793fbf53.tar.gz
- Fix sugg only if it exists...
Diffstat (limited to 'ext/enchant')
-rwxr-xr-xext/enchant/enchant.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/enchant/enchant.c b/ext/enchant/enchant.c
index 4aa73c4e20..0428a18ad0 100755
--- a/ext/enchant/enchant.c
+++ b/ext/enchant/enchant.c
@@ -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;
}