[Scummvm-cvs-logs] scummvm master -> 9f83f9b6f723f309d36692bc902a3d6bebf2585d
eriktorbjorn
eriktorbjorn at telia.com
Wed Jun 5 19:41:13 CEST 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
9f83f9b6f7 LURE: Use correct deallocator, CID 1004041
Commit: 9f83f9b6f723f309d36692bc902a3d6bebf2585d
https://github.com/scummvm/scummvm/commit/9f83f9b6f723f309d36692bc902a3d6bebf2585d
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2013-06-05T10:38:37-07:00
Commit Message:
LURE: Use correct deallocator, CID 1004041
The memory was allocated with Memory::alloc(), so it should be
freed with Memory::dealloc(), not delete.
Changed paths:
engines/lure/menu.cpp
diff --git a/engines/lure/menu.cpp b/engines/lure/menu.cpp
index 7d34ac3..7564ce9 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];
}
More information about the Scummvm-git-logs
mailing list