diff options
Diffstat (limited to 'modules/commands/cs_entrymsg.cpp')
-rw-r--r-- | modules/commands/cs_entrymsg.cpp | 6 |
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) |