From ed384a0deb93e8916313569a60967e1a294961fb Mon Sep 17 00:00:00 2001 From: Andrei Prykhodko Date: Mon, 30 Jul 2018 07:03:00 +0300 Subject: [PATCH] GRAPHICS: MACGUI: fixed memory leaks in MacTextWindow --- graphics/macgui/mactextwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp index 8aabaed125d..0ea311aa288 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); }