1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 19:56:39 +02:00

Switch Destroy methods to delete

This commit is contained in:
Adam
2013-02-14 20:58:01 -05:00
parent 391f2822c8
commit fc1d7ea89b
32 changed files with 62 additions and 62 deletions
+3 -3
View File
@@ -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);