GUI: Fix two leaks in predictive dialog

This commit is contained in:
Torbjörn Andersson 2016-02-28 15:04:11 +01:00
parent 9d4216e158
commit bf5208dd3d
2 changed files with 2 additions and 0 deletions

View file

@ -981,6 +981,7 @@ void PredictiveDialog::loadAllDictionary(Dict &dict) {
Common::File *inFile = new Common::File();
if (!inFile->open(ConfMan.get(dict.nameDict))) {
warning("Predictive Dialog: cannot read file: %s", dict.defaultFilename.c_str());
delete inFile;
return;
}
loadDictionary(inFile, dict);