From fc1d7ea89b5beed96022499fe7fa86bef7cf2aad Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 14 Feb 2013 20:58:01 -0500 Subject: Switch Destroy methods to delete --- modules/commands/os_session.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/commands/os_session.cpp') diff --git a/modules/commands/os_session.cpp b/modules/commands/os_session.cpp index 5a4cf279d..949aabbe8 100644 --- a/modules/commands/os_session.cpp +++ b/modules/commands/os_session.cpp @@ -103,7 +103,7 @@ class ExpireTimer : public Timer continue; Log(OperServ, "expire/exception") << "Session exception for " << e->mask << "has expired."; session_service->DelException(e); - e->Destroy(); + delete e; } } }; @@ -144,7 +144,7 @@ class ExceptionDelCallback : public NumberList FOREACH_MOD(I_OnExceptionDel, OnExceptionDel(source, e)); session_service->DelException(e); - e->Destroy(); + delete e; } }; @@ -352,7 +352,7 @@ class CommandOSException : public Command EventReturn MOD_RESULT; FOREACH_RESULT(I_OnExceptionAdd, OnExceptionAdd(exception)); if (MOD_RESULT == EVENT_STOP) - exception->Destroy(); + delete exception; else { session_service->AddException(exception); -- cgit