diff options
author | Filippos Karapetis | 2015-12-08 17:34:12 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:33:56 +0100 |
commit | 90e221a570bf684dee016a0aaa5e8ca968465390 (patch) | |
tree | caef7aa05f075d02781ec03dffea796da813cd07 /engines/lab/special.cpp | |
parent | c9ca5a0dd02bd83c1ed78a3f387206f69c8ebbab (diff) | |
download | scummvm-rg350-90e221a570bf684dee016a0aaa5e8ca968465390.tar.gz scummvm-rg350-90e221a570bf684dee016a0aaa5e8ca968465390.tar.bz2 scummvm-rg350-90e221a570bf684dee016a0aaa5e8ca968465390.zip |
LAB: Plug a memory leak
Diffstat (limited to 'engines/lab/special.cpp')
-rw-r--r-- | engines/lab/special.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/lab/special.cpp b/engines/lab/special.cpp index 502520a588..cce06e69dc 100644 --- a/engines/lab/special.cpp +++ b/engines/lab/special.cpp @@ -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(); |