mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 20:01:25 +00:00
DIRECTOR: Fix memory leak in Window::loadEXE()
This commit is contained in:
parent
ecaed41e59
commit
e93583bbf0
@ -260,6 +260,7 @@ Archive *Window::loadEXE(const Common::String movie) {
|
||||
Common::WinResources *exe = Common::WinResources::createFromEXE(movie);
|
||||
if (!exe) {
|
||||
warning("Window::loadEXE(): Failed to open EXE '%s'", g_director->getEXEName().c_str());
|
||||
delete exeStream;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user