FULLPIPE: Plug memory leak

This commit is contained in:
Eugene Sandulenko 2016-05-15 13:07:23 +02:00
parent 6858dbe2c2
commit 7526cf82f2
2 changed files with 3 additions and 2 deletions

View File

@ -223,6 +223,7 @@ int InventoryManager::displayInv() {
else
_vm->_useItem = -1;
free(names);
free(inv);
return 0;
}

View File

@ -855,9 +855,9 @@ Common::Array<MovItem *> *MovGraph::getPaths(StaticANIObject *ani, int x, int y,
if (sz > 0) {
for (int j = 0; j < sz; j++)
_items[idx]->movitems->push_back(movitems[j]);
delete movitems;
}
delete movitems;
}
delete movarr;