From 37ea36005d6e5a50e59880791a622632ae30fab5 Mon Sep 17 00:00:00 2001 From: twanvl Date: Sat, 10 Jan 2009 14:44:45 +0000 Subject: [PATCH] free spelling suggestion list from hunspell git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1336 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/util/spell_checker.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/spell_checker.cpp b/src/util/spell_checker.cpp index 0291184c..d9aad82a 100644 --- a/src/util/spell_checker.cpp +++ b/src/util/spell_checker.cpp @@ -128,6 +128,7 @@ void SpellChecker::suggest(const String& word, vector& 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); }