mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 00:45:10 +00:00
LURE: Use correct deallocator, CID 1004041
The memory was allocated with Memory::alloc(), so it should be freed with Memory::dealloc(), not delete.
This commit is contained in:
parent
af76409408
commit
9f83f9b6f7
@ -459,7 +459,7 @@ Action PopupMenu::Show(int numEntries, Action *actions) {
|
||||
strList[index] = stringList.getString(*actionPtr++);
|
||||
uint16 result = Show(numEntries, strList);
|
||||
|
||||
delete strList;
|
||||
Memory::dealloc(strList);
|
||||
if (result == 0xffff) return NONE;
|
||||
else return actions[result];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user