DIRECTOR: Plug stream leak for Mac archives

This commit is contained in:
Scott Percival 2022-09-25 12:10:10 +08:00 committed by Eugene Sandulenko
parent 4e22e09685
commit 00a7d69fd1

View File

@ -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);
}