aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/mactextwindow.cpp
diff options
context:
space:
mode:
authorAndrei Prykhodko2018-07-30 07:03:00 +0300
committerAndrei Prykhodko2018-07-30 07:03:00 +0300
commited384a0deb93e8916313569a60967e1a294961fb (patch)
treea604a3c88d1f551cda09c73597161000fd46406f /graphics/macgui/mactextwindow.cpp
parent459f26fcaf2fb28933c2f96d72f8eae00743e59d (diff)
downloadscummvm-rg350-ed384a0deb93e8916313569a60967e1a294961fb.tar.gz
scummvm-rg350-ed384a0deb93e8916313569a60967e1a294961fb.tar.bz2
scummvm-rg350-ed384a0deb93e8916313569a60967e1a294961fb.zip
GRAPHICS: MACGUI: fixed memory leaks in MacTextWindow
Diffstat (limited to 'graphics/macgui/mactextwindow.cpp')
-rw-r--r--graphics/macgui/mactextwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp
index 8aabaed125..0ea311aa28 100644
--- a/graphics/macgui/mactextwindow.cpp
+++ b/graphics/macgui/mactextwindow.cpp
@@ -108,7 +108,9 @@ void MacTextWindow::clearText() {
}
MacTextWindow::~MacTextWindow() {
+ delete _cursorRect;
delete _cursorSurface;
+ delete _mactext;
g_system->getTimerManager()->removeTimerProc(&cursorTimerHandler);
}