free spelling suggestion list from hunspell

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1336 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2009-01-10 14:44:45 +00:00
parent 18730641db
commit 37ea36005d
+1
View File
@@ -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);
}