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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user