diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mads/messages.cpp | 5 | ||||
-rw-r--r-- | engines/mads/messages.h | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/engines/mads/messages.cpp b/engines/mads/messages.cpp index aaf6c4100e..69d984313b 100644 --- a/engines/mads/messages.cpp +++ b/engines/mads/messages.cpp @@ -39,6 +39,10 @@ KernelMessages::KernelMessages(MADSEngine *vm): _vm(vm) { word_8469E = 0; } +KernelMessages::~KernelMessages() { + delete _talkFont; +} + void KernelMessages::clear() { Scene &scene = _vm->_game->_scene; @@ -46,7 +50,6 @@ void KernelMessages::clear() { _entries[i]._flags = 0; scene._textSpacing = -1; - _talkFont = _vm->_font->getFont(FONT_CONVERSATION); } int KernelMessages::add(const Common::Point &pt, uint fontColor, uint8 flags, diff --git a/engines/mads/messages.h b/engines/mads/messages.h index 19a0115f94..340f33ef46 100644 --- a/engines/mads/messages.h +++ b/engines/mads/messages.h @@ -75,6 +75,7 @@ public: int word_8469E; public: KernelMessages(MADSEngine *vm); + ~KernelMessages(); void clear(); int add(const Common::Point &pt, uint fontColor, uint8 flags, uint8 abortTimers, |