diff options
author | Matthew Hoops | 2013-04-15 18:22:50 -0400 |
---|---|---|
committer | Matthew Hoops | 2013-04-15 18:22:50 -0400 |
commit | 369883bbd9e3912e04c047c0393af27a87aa8dcf (patch) | |
tree | 09a87a63b2aab5617eacf6b577500526f2281d9b | |
parent | 6a3f735392aa3fdbe37b4e2503e3e8167a247b66 (diff) | |
download | scummvm-rg350-369883bbd9e3912e04c047c0393af27a87aa8dcf.tar.gz scummvm-rg350-369883bbd9e3912e04c047c0393af27a87aa8dcf.tar.bz2 scummvm-rg350-369883bbd9e3912e04c047c0393af27a87aa8dcf.zip |
MOHAWK: Fix string offsets memory leak
-rw-r--r-- | engines/mohawk/console.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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")) { |