From bb995bc871e0644f3368057a0138a85c4ccdb51a Mon Sep 17 00:00:00 2001 From: Andrei Prykhodko Date: Sun, 5 Aug 2018 23:07:55 +0300 Subject: GRAPHICS: MACGUI: fixed mem leak in MacText --- graphics/macgui/mactext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'graphics/macgui') diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index 69e2dce932..58017d9c45 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -47,7 +47,8 @@ const Common::String MacFontRun::toString() { (palinfo3 >> 8) & 0xff, palinfo3 & 0xff); } -MacText::~MacText(){ +MacText::~MacText() { + delete _surface; delete _macFont; } -- cgit v1.2.3