diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-06-13 16:07:06 +0300 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-06-13 13:12:42 -0600 |
commit | 0b15a3ad32838134384524ce4af95d65b0b4e5da (patch) | |
tree | 1d558ea3e5c722748f2870ccf92bffd2f8488b80 /src/gui | |
parent | 48fd3efab457b3ae35ca0a7df0f3d1ce59e54e24 (diff) | |
download | mana-client-0b15a3ad32838134384524ce4af95d65b0b4e5da.tar.gz mana-client-0b15a3ad32838134384524ce4af95d65b0b4e5da.tar.bz2 mana-client-0b15a3ad32838134384524ce4af95d65b0b4e5da.tar.xz mana-client-0b15a3ad32838134384524ce4af95d65b0b4e5da.zip |
Fix memory leaks in different windows.
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/setup_video.cpp | 1 | ||||
-rw-r--r-- | src/gui/skilldialog.cpp | 6 | ||||
-rw-r--r-- | src/gui/socialwindow.cpp | 1 |
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) |