mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 17:57:14 +00:00
WAGE: Plug memory leak
This commit is contained in:
parent
b01fb9f3f3
commit
c3bae66b56
@ -175,6 +175,7 @@ bool Script::execute(World *world, int loopCount, Common::String *inputText, Des
|
||||
Operand *op = readStringOperand(); // allows empty menu
|
||||
// TODO check op type is string.
|
||||
_engine->setMenu(op->toString());
|
||||
delete op;
|
||||
byte d = _data->readByte();
|
||||
if (d != 0xFD)
|
||||
warning("Operand 0x8B (PRINT) End Byte != 0xFD");
|
||||
|
@ -274,6 +274,7 @@ bool World::loadWorld(Common::MacResManager *resMan) {
|
||||
for (uint i = 0; i < string.size() && string[i] != ';'; i++) // Read token
|
||||
_aboutMenuItemName += string[i];
|
||||
|
||||
delete menu;
|
||||
delete res;
|
||||
}
|
||||
res = resMan->getResource(MKTAG('M','E','N','U'), 2004);
|
||||
|
Loading…
x
Reference in New Issue
Block a user