From 871c1d0907615cdc292fefb00a58ea64010cc4c0 Mon Sep 17 00:00:00 2001 From: Scott Percival Date: Fri, 2 Jun 2023 20:10:12 +0800 Subject: [PATCH] DIRECTOR: Fix leak in Window::runTests() --- engines/director/tests.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/engines/director/tests.cpp b/engines/director/tests.cpp index 5566af5f48f..bf851644024 100644 --- a/engines/director/tests.cpp +++ b/engines/director/tests.cpp @@ -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"); }