[Scummvm-tracker] [ScummVM :: Bugs] #16052: LASTEXPRESS: Possible memory leaks
ScummVM :: Bugs
trac at scummvm.org
Fri Jun 27 07:30:00 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 AndywinXp):
Thanks.
I'm a bit confused by the one in `SubtitleManager::initSubtitles()`...
I can clearly see that this gets accessed (lastexpresss.h:473) and the
memory is effectively freed:
{{{
~FontData() {
memset(palette, 0, sizeof(palette));
memset(charMap, 0, sizeof(charMap));
memset(charKerning, 0, sizeof(charKerning));
free(fontData);
fontData = nullptr;
}
}}}
Anyhow, I sent a commit fixing most of these, please rerun Valgrind and
let me know.
--
Ticket URL: <https://bugs.scummvm.org/ticket/16052#comment:2>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list