summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-06-13 16:07:06 +0300
committerJared Adams <jaxad0127@gmail.com>2010-06-13 13:12:42 -0600
commit0b15a3ad32838134384524ce4af95d65b0b4e5da (patch)
tree1d558ea3e5c722748f2870ccf92bffd2f8488b80 /src/gui/skilldialog.cpp
parent48fd3efab457b3ae35ca0a7df0f3d1ce59e54e24 (diff)
downloadmana-0b15a3ad32838134384524ce4af95d65b0b4e5da.tar.gz
mana-0b15a3ad32838134384524ce4af95d65b0b4e5da.tar.bz2
mana-0b15a3ad32838134384524ce4af95d65b0b4e5da.tar.xz
mana-0b15a3ad32838134384524ce4af95d65b0b4e5da.zip
Fix memory leaks in different windows.
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r--src/gui/skilldialog.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index 528e8539..53528cee 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -185,6 +185,12 @@ public:
setCaption(name);
}
+ ~SkillTab()
+ {
+ delete mListBox;
+ mListBox = 0;
+ }
+
SkillInfo *getSelectedInfo()
{
return mListBox->getSelectedInfo();