[Scummvm-tracker] [ScummVM :: Bugs] #16052: LASTEXPRESS: Possible memory leaks
ScummVM :: Bugs
trac at scummvm.org
Fri Jun 27 05:14:01 UTC 2025
#16052: LASTEXPRESS: Possible memory leaks
-------------------------+----------------------------------
Reporter: eriktorbjorn | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Engine: LastExpress
Version: | Resolution:
Keywords: | Game:
-------------------------+----------------------------------
Comment (by eriktorbjorn):
A quick search for tight waiting loops turned up these.
menu/menu.cpp - Lines 909-911
menu/menu.cpp - Lines 945-947
game/action.cpp - Lines 552-557
The last one seems to be what I got stuck in, so maybe this fixes it? I
haven't looked at the first two:
{{{
diff --git a/engines/lastexpress/game/action.cpp
b/engines/lastexpress/game/action.cpp
index 212547f8d4b..8e0ea0ef35b 100644
--- a/engines/lastexpress/game/action.cpp
+++ b/engines/lastexpress/game/action.cpp
@@ -554,6 +554,7 @@ void LogicManager::doPostFunction() {
break;
_engine->getSoundManager()->soundThread();
_engine->getSubtitleManager()->subThread();
+ _engine->waitForTimer(4);
} while (delayedTicks >
_engine->getSoundFrameCounter());
}
}}}
--
Ticket URL: <https://bugs.scummvm.org/ticket/16052#comment:1>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list