From dcffa5da6fe7aad26860973af5651f7c59902343 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 21 Mar 2013 23:39:39 -0500 Subject: Properly cleanup after entrymsglists and ajoinlists when destructed --- modules/commands/cs_entrymsg.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/commands/cs_entrymsg.cpp') diff --git a/modules/commands/cs_entrymsg.cpp b/modules/commands/cs_entrymsg.cpp index 46089cd94..68c36e7c7 100644 --- a/modules/commands/cs_entrymsg.cpp +++ b/modules/commands/cs_entrymsg.cpp @@ -44,6 +44,12 @@ static unsigned MaxEntries = 0; struct EntryMessageList : Serialize::Checker >, ExtensibleItem { EntryMessageList() : Serialize::Checker >("EntryMsg") { } + + ~EntryMessageList() + { + for (unsigned i = 0; i < (*this)->size(); ++i) + delete (*this)->at(i); + } }; Serializable* EntryMsg::Unserialize(Serializable *obj, Serialize::Data &data) -- cgit