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/shortcutwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/shortcutwindow.cpp') diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp index f9db35ff6..0492afce0 100644 --- a/src/gui/shortcutwindow.cpp +++ b/src/gui/shortcutwindow.cpp @@ -131,6 +131,8 @@ ShortcutWindow::ShortcutWindow(const std::string &title, int width, int height) ShortcutWindow::~ShortcutWindow() { + if (mTabs) + mTabs->removeAll(); delete mTabs; mTabs = 0; delete mItems; -- cgit v1.2.3-70-g09d2