mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 19:51:49 +00:00
DIRECTOR: Fix resource leaks
This commit is contained in:
parent
0294513802
commit
9ec8fbb649
@ -493,10 +493,9 @@ bool RIFXArchive::openStream(Common::SeekableReadStream *stream, uint32 startOff
|
||||
} else {
|
||||
warning("RIFXArchive::openStream(): Can not open dump file %s", buf);
|
||||
}
|
||||
|
||||
free(dumpData);
|
||||
delete dumpStream;
|
||||
}
|
||||
free(dumpData);
|
||||
delete dumpStream;
|
||||
|
||||
// If we couldn't read the map, we can't do anything past this point.
|
||||
if (!readMapSuccess)
|
||||
|
@ -196,6 +196,7 @@ Lingo::~Lingo() {
|
||||
resetLingo();
|
||||
cleanupFuncs();
|
||||
cleanupMethods();
|
||||
delete _compiler;
|
||||
}
|
||||
|
||||
void Lingo::reloadBuiltIns() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user