Commit f02c484f authored by twanvl's avatar twanvl

free spelling suggestion list from hunspell

parent 19937b68
......@@ -128,6 +128,7 @@ void SpellChecker::suggest(const String& word, vector<String>& suggestions_out)
// copy sugestions
for (int i = 0 ; i < num_suggestions ; ++i) {
suggestions_out.push_back(String(suggestions[i],encoding));
free(suggestions[i]);
}
free(suggestions);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment