mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 07:14:59 +00:00
LAB: Plug a memory leak
This commit is contained in:
parent
c9ca5a0dd0
commit
90e221a570
@ -152,7 +152,7 @@ void LabEngine::loadJournalData() {
|
||||
char filename[20];
|
||||
bool bridge, dirty, news, clean;
|
||||
|
||||
journalFont = g_lab->_resource->getFont("P:Journal.fon"); // FIXME: memory leak
|
||||
journalFont = g_lab->_resource->getFont("P:Journal.fon");
|
||||
|
||||
g_lab->_music->updateMusic();
|
||||
|
||||
@ -368,7 +368,9 @@ void LabEngine::doJournal() {
|
||||
_event->attachGadgetList(NULL);
|
||||
_graphics->fade(false, 0);
|
||||
_event->mouseHide();
|
||||
|
||||
freeButtonList(&_journalGadgetList);
|
||||
g_lab->_graphics->closeFont(journalFont);
|
||||
|
||||
ScreenImage._imageData = _graphics->getCurrentDrawingBuffer();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user