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/engine/kscripts.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/engine/kscripts.cpp')
-rw-r--r-- | engines/sci/engine/kscripts.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/engine/kscripts.cpp b/engines/sci/engine/kscripts.cpp index e211867ef9..a5501c160f 100644 --- a/engines/sci/engine/kscripts.cpp +++ b/engines/sci/engine/kscripts.cpp @@ -95,6 +95,7 @@ reg_t kLock(EngineState *s, int argc, reg_t *argv) { ++itr; } + delete resources; } else { which = g_sci->getResMan()->findResource(id, 0); |