summaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-09-15 17:35:36 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-09-15 17:35:36 +0200
commitb8d32b75cd8d7d70058706122239d2814d5f6487 (patch)
treef40f3b8c3c436eb079332a134051c0a1520fa1cd /src/server.cpp
parent6890d6aef73ce11bf8f5f8bd8d36dba824743a96 (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.cpp2
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);
}