diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-05-25 02:51:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-05-25 02:51:51 +0300 |
commit | 8d80b897b5863372649de9b5f3c8d7234ae47f58 (patch) | |
tree | a109bb1adeee89489113a4637ecd197dae403018 /src/gui/debugwindow.cpp | |
parent | 1f4032b8de527da72ef4b89371c077eea644fdf2 (diff) | |
download | manaplus-8d80b897b5863372649de9b5f3c8d7234ae47f58.tar.gz manaplus-8d80b897b5863372649de9b5f3c8d7234ae47f58.tar.bz2 manaplus-8d80b897b5863372649de9b5f3c8d7234ae47f58.tar.xz manaplus-8d80b897b5863372649de9b5f3c8d7234ae47f58.zip |
Fix some memory leaks in being, debugwindow, shortcutwindow, skilldialog, map classes.
Diffstat (limited to 'src/gui/debugwindow.cpp')
-rw-r--r-- | src/gui/debugwindow.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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) |