diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-09-15 17:35:36 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-09-15 17:35:36 +0200 |
commit | b8d32b75cd8d7d70058706122239d2814d5f6487 (patch) | |
tree | f40f3b8c3c436eb079332a134051c0a1520fa1cd /src/server.cpp | |
parent | 6890d6aef73ce11bf8f5f8bd8d36dba824743a96 (diff) |
Fix incorrect cleanup order in InspIRCd::Exit()
classbase objects such as callers call LogManager::Log() on destruction unless ServerInstance is NULL
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp index ceefa4387..256ccfc4c 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -50,8 +50,8 @@ void InspIRCd::Exit(int status) { this->SendError("Exiting with status " + ConvToStr(status) + " (" + std::string(ExitCodes[status]) + ")"); this->Cleanup(); - delete this; ServerInstance = NULL; + delete this; } exit (status); } |