1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 03:43:13 +02:00

Properly cleanup after entrymsglists and ajoinlists when destructed

This commit is contained in:
Adam
2013-03-21 23:39:39 -05:00
parent 221e79f50d
commit dcffa5da6f
2 changed files with 13 additions and 0 deletions
+6
View File
@@ -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)