Use free() on data returned by Hunspell, not delete

This commit is contained in:
Thomas Goyne 2014-05-26 19:58:41 -07:00
parent eec83bb32b
commit dfec6b73b7

View file

@ -145,10 +145,10 @@ std::vector<std::string> HunspellSpellChecker::GetSuggestions(std::string const&
catch (agi::charset::ConvError const&) {
// Shouldn't ever actually happen...
}
delete results[i];
free(results[i]);
}
delete results;
free(results);
return suggestions;
}