diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-06-12 20:38:40 +0300 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-06-12 11:49:36 -0600 |
commit | 24d29f88e6e8a28177d404bfa3ed87896bdd7a1f (patch) | |
tree | 725c6ce0d07dcaf832c0e7119fa4bdad5058376b | |
parent | 78aa59cae515ab9bf6bbe1f8ffd97990cfa1df45 (diff) | |
download | mana-24d29f88e6e8a28177d404bfa3ed87896bdd7a1f.tar.gz mana-24d29f88e6e8a28177d404bfa3ed87896bdd7a1f.tar.bz2 mana-24d29f88e6e8a28177d404bfa3ed87896bdd7a1f.tar.xz mana-24d29f88e6e8a28177d404bfa3ed87896bdd7a1f.zip |
Fix memory leak in socialwindow.cpp.
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
-rw-r--r-- | src/gui/socialwindow.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp index 468a94c4..4f3bb6e5 100644 --- a/src/gui/socialwindow.cpp +++ b/src/gui/socialwindow.cpp @@ -63,7 +63,7 @@ protected: mConfirmDialog(NULL) {} - ~SocialTab() + virtual ~SocialTab() { // Cleanup dialogs if (mInviteDialog) @@ -108,6 +108,14 @@ public: mScroll->setVerticalScrollPolicy(gcn::ScrollArea::SHOW_ALWAYS); } + ~GuildTab() + { + delete mList; + mList = 0; + delete mScroll; + mScroll = 0; + } + void action(const gcn::ActionEvent &event) { if (event.getId() == "do invite") @@ -181,6 +189,14 @@ public: mScroll->setVerticalScrollPolicy(gcn::ScrollArea::SHOW_ALWAYS); } + ~PartyTab() + { + delete mList; + mList = 0; + delete mScroll; + mScroll = 0; + } + void action(const gcn::ActionEvent &event) { if (event.getId() == "do invite") |