DIRECTOR: Fix memory leak in Window::loadEXE()

This commit is contained in:
Scott Percival 2023-01-27 18:24:27 +08:00 committed by Eugene Sandulenko
parent ecaed41e59
commit e93583bbf0

View File

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