summaryrefslogtreecommitdiff
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
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>
-rw-r--r--src/gui/setup_video.cpp1
-rw-r--r--src/gui/skilldialog.cpp6
-rw-r--r--src/gui/socialwindow.cpp1
3 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index ebe53261..81ce8107 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -380,6 +380,7 @@ Setup_Video::Setup_Video():
Setup_Video::~Setup_Video()
{
delete mModeListModel;
+ delete mModeList;
delete mFontSizeListModel;
}
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();
diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp
index 4f3bb6e5..098ecbc5 100644
--- a/src/gui/socialwindow.cpp
+++ b/src/gui/socialwindow.cpp
@@ -368,6 +368,7 @@ SocialWindow::~SocialWindow()
mPartyInviter = "";
}
+ delete mCreatePopup;
}
bool SocialWindow::addTab(Guild *guild)