mirror of https://github.com/odrling/Aegisub
Use free() on data returned by Hunspell, not delete
This commit is contained in:
parent
eec83bb32b
commit
dfec6b73b7
|
@ -145,10 +145,10 @@ std::vector<std::string> HunspellSpellChecker::GetSuggestions(std::string const&
|
||||||
catch (agi::charset::ConvError const&) {
|
catch (agi::charset::ConvError const&) {
|
||||||
// Shouldn't ever actually happen...
|
// Shouldn't ever actually happen...
|
||||||
}
|
}
|
||||||
delete results[i];
|
free(results[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
delete results;
|
free(results);
|
||||||
|
|
||||||
return suggestions;
|
return suggestions;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue