From 0c8fd1b9e6a4840bb573c26602f439e7c6ab9d7d Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 30 Mar 2010 13:16:43 -0600 Subject: Fix some memory issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Thorbjørn Lindeijer --- src/party.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/party.h') diff --git a/src/party.h b/src/party.h index d50ed7b0..c9d26672 100644 --- a/src/party.h +++ b/src/party.h @@ -25,6 +25,8 @@ #include "gui/widgets/avatarlistbox.h" +#include "utils/dtor.h" + #include #include #include @@ -132,7 +134,7 @@ public: */ void removeMember(const std::string &name); - void clearMembers() { mMembers.clear(); } + void clearMembers() { delete_all(mMembers); mMembers.clear(); } void removeFromMembers(); @@ -176,6 +178,8 @@ private: */ Party(short id); + ~Party(); + typedef std::vector MemberList; MemberList mMembers; std::string mName; -- cgit v1.2.3-70-g09d2