mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
DIRECTOR: Plug stream leak for Mac archives
This commit is contained in:
parent
4e22e09685
commit
00a7d69fd1
@ -496,6 +496,7 @@ bool RIFXArchive::openStream(Common::SeekableReadStream *stream, uint32 startOff
|
||||
MacArchive *macArchive = new MacArchive();
|
||||
if (!macArchive->openStream(macStream)) {
|
||||
delete macArchive;
|
||||
delete macStream;
|
||||
} else {
|
||||
g_director->getCurrentWindow()->probeMacBinary(macArchive);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user