diff options
| author | 2026-06-11 11:08:44 +0100 | |
|---|---|---|
| committer | 2026-06-11 11:08:44 +0100 | |
| commit | 299bd3f62035a5c1963561e2ba2b3110dc7fe3f8 (patch) | |
| tree | 0a4585197b8bba17d0b8a4515b23d681be18b486 /src/inspircd.cpp | |
| parent | Fix checking for PIC support. (diff) | |
Fix a crash on shutdown.
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 4f1eeb5bd..775291ef4 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -403,11 +403,12 @@ void InspIRCd::Cleanup() /* Must be deleted before modes as it decrements modelines */ if (FakeClient) { - LocalServer = nullptr; - insp::delete_zero(FakeClient->server); FakeClient->Cull(); + insp::delete_zero(this->FakeClient); } - insp::delete_zero(this->FakeClient); + if (LocalServer) + insp::delete_zero(LocalServer); + insp::delete_zero(this->XLines); this->Config.reset(nullptr); SocketEngine::Deinit(); |
