mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 11:51:52 +00:00
DIRECTOR: Fix use after free
This commit is contained in:
parent
59ca2de0f2
commit
e9146658d9
@ -461,8 +461,6 @@ Archive *Window::loadEXERIFX(Common::SeekableReadStream *stream, uint32 offset)
|
||||
warning("Window::loadEXERIFX(): Failed to load RIFX from EXE");
|
||||
delete result;
|
||||
result = nullptr;
|
||||
delete stream;
|
||||
stream = nullptr;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user