From 8d80b897b5863372649de9b5f3c8d7234ae47f58 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 May 2011 02:51:51 +0300 Subject: Fix some memory leaks in being, debugwindow, shortcutwindow, skilldialog, map classes. --- src/gui/debugwindow.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui/debugwindow.cpp') diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp index ecc3ada54..d7cec480a 100644 --- a/src/gui/debugwindow.cpp +++ b/src/gui/debugwindow.cpp @@ -80,6 +80,16 @@ DebugWindow::DebugWindow(): loadWindowState(); } +DebugWindow::~DebugWindow() +{ + delete mMapWidget; + mMapWidget = 0; + delete mTargetWidget; + mTargetWidget = 0; + delete mNetWidget; + mNetWidget = 0; +} + void DebugWindow::logic() { if (!isVisible() || !mTabs) -- cgit v1.2.3-70-g09d2