mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 23:52:41 +00:00
FULLPIPE: Plug memory leak
This commit is contained in:
parent
6858dbe2c2
commit
7526cf82f2
@ -223,6 +223,7 @@ int InventoryManager::displayInv() {
|
||||
else
|
||||
_vm->_useItem = -1;
|
||||
|
||||
free(names);
|
||||
free(inv);
|
||||
return 0;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user