summaryrefslogtreecommitdiff
path: root/modules/commands/cs_entrymsg.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-03-21 23:39:39 -0500
committerAdam <Adam@anope.org>2013-03-21 23:39:39 -0500
commitdcffa5da6fe7aad26860973af5651f7c59902343 (patch)
tree97634bfb9f950750613a0539f5ea5f3b7ee247ad /modules/commands/cs_entrymsg.cpp
parent221e79f50d59eff98a2c671332bf9d92dbe35dd5 (diff)
Properly cleanup after entrymsglists and ajoinlists when destructed
Diffstat (limited to 'modules/commands/cs_entrymsg.cpp')
-rw-r--r--modules/commands/cs_entrymsg.cpp6
1 files changed, 6 insertions, 0 deletions
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<std::vector<EntryMsg *> >, ExtensibleItem
{
EntryMessageList() : Serialize::Checker<std::vector<EntryMsg *> >("EntryMsg") { }
+
+ ~EntryMessageList()
+ {
+ for (unsigned i = 0; i < (*this)->size(); ++i)
+ delete (*this)->at(i);
+ }
};
Serializable* EntryMsg::Unserialize(Serializable *obj, Serialize::Data &data)