aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui
diff options
context:
space:
mode:
authorAndrei Prykhodko2018-08-05 23:07:55 +0300
committerAndrei Prykhodko2018-08-05 23:07:55 +0300
commitbb995bc871e0644f3368057a0138a85c4ccdb51a (patch)
tree86912624fa5caee0fc4688b591c6c4fba8e2d1d4 /graphics/macgui
parent47130eceb3a059f342b54b678ce0839e01474dd2 (diff)
downloadscummvm-rg350-bb995bc871e0644f3368057a0138a85c4ccdb51a.tar.gz
scummvm-rg350-bb995bc871e0644f3368057a0138a85c4ccdb51a.tar.bz2
scummvm-rg350-bb995bc871e0644f3368057a0138a85c4ccdb51a.zip
GRAPHICS: MACGUI: fixed mem leak in MacText
Diffstat (limited to 'graphics/macgui')
-rw-r--r--graphics/macgui/mactext.cpp3
1 files changed, 2 insertions, 1 deletions
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;
}