mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user