diff options
author | Adam <Adam@anope.org> | 2013-02-14 20:58:01 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-02-14 20:58:01 -0500 |
commit | fc1d7ea89b5beed96022499fe7fa86bef7cf2aad (patch) | |
tree | 0208b9f5e153191742d15c51d6ca98737d8f7eb9 /modules/commands/cs_entrymsg.cpp | |
parent | 391f2822c8f6da7d6ffa8114817a8baf2aa265d5 (diff) |
Switch Destroy methods to delete
Diffstat (limited to 'modules/commands/cs_entrymsg.cpp')
-rw-r--r-- | modules/commands/cs_entrymsg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/cs_entrymsg.cpp b/modules/commands/cs_entrymsg.cpp index 3d5ca6655..6c39016ef 100644 --- a/modules/commands/cs_entrymsg.cpp +++ b/modules/commands/cs_entrymsg.cpp @@ -161,7 +161,7 @@ class CommandEntryMessage : public Command unsigned i = convertTo<unsigned>(message); if (i > 0 && i <= (*messages)->size()) { - (*messages)->at(i - 1)->Destroy(); + delete (*messages)->at(i - 1); (*messages)->erase((*messages)->begin() + i - 1); if ((*messages)->empty()) ci->Shrink("cs_entrymsg"); @@ -184,7 +184,7 @@ class CommandEntryMessage : public Command if (messages != NULL) { for (unsigned i = 0; i < (*messages)->size(); ++i) - (*messages)->at(i)->Destroy(); + delete (*messages)->at(i); (*messages)->clear(); ci->Shrink("cs_entrymsg"); } |