SCI: Fix leaks in ResourceManager::listResources caller code.
svn-id: r51666
This commit is contained in:
parent
a1001731fa
commit
dd38e424e7
5 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue