[Scummvm-tracker] [ScummVM :: Bugs] #16052: LASTEXPRESS: Possible memory leaks
ScummVM :: Bugs
trac at scummvm.org
Sat Jun 28 18:38:43 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):
The Valgrind log seems to be shrinking. Attached a new log.
You asked me to try and trace some of those loadSeq() calls that leak.
If you quit from the menu screen, `Clock::endClock()` is not called so
anything that `Clock::startClock()` loaded is leaked. And it seems that
when you quit the game, you briefly go past the clock menu again, without
calling `endClock()`, so that could explain some of the leaks? Though just
calling `endClock()` from the `Clock` destructor causes the game to crash.
Note that there is a difference between using the Quit button or using the
ScummVM hotkey for quitting. There also seems to be a difference depending
on whether the "confirm_exit" option is true or false.
--
Ticket URL: <https://bugs.scummvm.org/ticket/16052#comment:5>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list