mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
Corrected deallocated of menu data reported by Valgrind
svn-id: r48412
This commit is contained in:
parent
a3ab15e8cf
commit
b39222d611
@ -293,8 +293,8 @@ uint16 PopupMenu::ShowInventory() {
|
||||
for (itemCtr = 0; itemCtr < numItems; ++itemCtr)
|
||||
free(itemNames[itemCtr]);
|
||||
|
||||
delete itemNames;
|
||||
delete idList;
|
||||
Memory::dealloc(itemNames);
|
||||
Memory::dealloc(idList);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user