From 369883bbd9e3912e04c047c0393af27a87aa8dcf Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Mon, 15 Apr 2013 18:22:50 -0400 Subject: MOHAWK: Fix string offsets memory leak --- engines/mohawk/console.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engines/mohawk/console.cpp b/engines/mohawk/console.cpp index fc957e895e..ce22132cee 100644 --- a/engines/mohawk/console.cpp +++ b/engines/mohawk/console.cpp @@ -531,6 +531,7 @@ bool RivenConsole::Cmd_DumpScript(int argc, const char **argv) { varNames.push_back(name); } delete nameStream; + delete[] stringOffsets; // Load in External Command Names nameStream = _vm->getResource(ID_NAME, ExternalCommandNames); @@ -552,6 +553,7 @@ bool RivenConsole::Cmd_DumpScript(int argc, const char **argv) { xNames.push_back(name); } delete nameStream; + delete[] stringOffsets; // Get CARD/HSPT data and dump their scripts if (!scumm_stricmp(argv[2], "CARD")) { -- cgit v1.2.3