mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Fix null deref on Cleanup() called before FakeUser creation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11926 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
be10eab6ce
commit
307c04d888
@ -111,7 +111,8 @@ void InspIRCd::Cleanup()
|
||||
|
||||
/* Delete objects dynamically allocated in constructor (destructor would be more appropriate, but we're likely exiting) */
|
||||
/* Must be deleted before modes as it decrements modelines */
|
||||
FakeClient->cull();
|
||||
if (FakeClient)
|
||||
FakeClient->cull();
|
||||
DeleteZero(this->FakeClient);
|
||||
DeleteZero(this->Users);
|
||||
DeleteZero(this->Modes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user