aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2013-06-05 19:38:37 +0200
committerTorbjörn Andersson2013-06-05 19:38:37 +0200
commit9f83f9b6f723f309d36692bc902a3d6bebf2585d (patch)
tree596f5a19088722d9043c50cfb4b0fcc2cade418d
parentaf76409408fdee2e3ad1ce9fbd5be2a21f544f53 (diff)
downloadscummvm-rg350-9f83f9b6f723f309d36692bc902a3d6bebf2585d.tar.gz
scummvm-rg350-9f83f9b6f723f309d36692bc902a3d6bebf2585d.tar.bz2
scummvm-rg350-9f83f9b6f723f309d36692bc902a3d6bebf2585d.zip
LURE: Use correct deallocator, CID 1004041
The memory was allocated with Memory::alloc(), so it should be freed with Memory::dealloc(), not delete.
-rw-r--r--engines/lure/menu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lure/menu.cpp b/engines/lure/menu.cpp
index 7d34ac3911..7564ce91a0 100644
--- a/engines/lure/menu.cpp
+++ b/engines/lure/menu.cpp
@@ -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];
}