diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-15 22:08:41 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-15 22:08:41 -0600 |
commit | 871af4828a0fc64637b8e08ca2d1df6233849d55 (patch) | |
tree | 7886a4b074f3a23a9ef14823b51e3582938da155 /src/gui/partywindow.cpp | |
parent | 6b59adabfcf909cb02075e2fab2d715b4e34af95 (diff) | |
download | mana-871af4828a0fc64637b8e08ca2d1df6233849d55.tar.gz mana-871af4828a0fc64637b8e08ca2d1df6233849d55.tar.bz2 mana-871af4828a0fc64637b8e08ca2d1df6233849d55.tar.xz mana-871af4828a0fc64637b8e08ca2d1df6233849d55.zip |
Clean up some more memory leaks
And remove an unneeded variable
Diffstat (limited to 'src/gui/partywindow.cpp')
-rw-r--r-- | src/gui/partywindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/partywindow.cpp b/src/gui/partywindow.cpp index aea1388b..9c2d3161 100644 --- a/src/gui/partywindow.cpp +++ b/src/gui/partywindow.cpp @@ -26,6 +26,7 @@ #include "net/net.h" #include "net/partyhandler.h" +#include "utils/dtor.h" #include "utils/gettext.h" #include "utils/strprintf.h" @@ -45,7 +46,7 @@ PartyWindow::PartyWindow() : Window(_("Party")) PartyWindow::~PartyWindow() { - mMembers.clear(); + delete_all(mMembers); } void PartyWindow::draw(gcn::Graphics *graphics) |