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:
Torbjörn Andersson 2013-06-05 19:38:37 +02:00
parent af76409408
commit 9f83f9b6f7

View File

@ -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];
}