DIRECTOR: Fix leak in Window::runTests()

This commit is contained in:
Scott Percival authored and Eugene Sandulenko committed 2023-06-08 09:16:30 +02:00
1 parent d69dac6016
commit 871c1d0907
1 file changed
+1
+1
View File
@@ -304,6 +304,7 @@ void Window::runTests() {
initGraphics(640, 480);
_mainArchive = new RIFXArchive();
g_director->_allOpenResFiles.setVal("test.dir", _mainArchive);
if (!_mainArchive->openStream(stream, 0)) {
error("DirectorEngine::runTests(): Bad movie data");
}