DIRECTOR: Fix use after free

This commit is contained in:
Eugene Sandulenko 2023-01-27 20:01:51 +01:00
parent 59ca2de0f2
commit e9146658d9
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

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