diff options
author | Johannes Schickel | 2010-08-02 22:27:26 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-08-02 22:27:26 +0000 |
commit | dd38e424e7ec87990019f4a811fdc25c62fe1729 (patch) | |
tree | a5835355d6e56db73a2680e5c8aecb0b9d3f2ad8 /engines/sci/console.cpp | |
parent | a1001731fa50c730dcf834b724edfb89a8352298 (diff) | |
download | scummvm-rg350-dd38e424e7ec87990019f4a811fdc25c62fe1729.tar.gz scummvm-rg350-dd38e424e7ec87990019f4a811fdc25c62fe1729.tar.bz2 scummvm-rg350-dd38e424e7ec87990019f4a811fdc25c62fe1729.zip |
SCI: Fix leaks in ResourceManager::listResources caller code.
svn-id: r51666
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r-- | engines/sci/console.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 7407f08482..bac31f6c8e 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -844,6 +844,7 @@ bool Console::cmdVerifyScripts(int argc, const char **argv) { } DebugPrintf("SCI1.1-SCI2.1 script check finished\n"); + delete resources; return true; } @@ -1006,6 +1007,7 @@ bool Console::cmdShowInstruments(int argc, const char **argv) { DebugPrintf("\n\n"); } + delete resources; return true; } @@ -1051,7 +1053,6 @@ bool Console::cmdList(int argc, const char **argv) { ++itr; } DebugPrintf("\n"); - delete resources; } |