mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
More deallocation-at-exit cleanup
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11621 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
8085aa879b
commit
771016b997
@ -150,6 +150,7 @@ void InspIRCd::Cleanup()
|
||||
DeleteZero(this->PI);
|
||||
DeleteZero(this->Threads);
|
||||
DeleteZero(this->Timers);
|
||||
DeleteZero(this->SE);
|
||||
/* Close logging */
|
||||
this->Logs->CloseLogs();
|
||||
DeleteZero(this->Logs);
|
||||
|
@ -470,6 +470,8 @@ class ModuleDCCAllow : public Module
|
||||
|
||||
virtual ~ModuleDCCAllow()
|
||||
{
|
||||
delete Conf;
|
||||
Conf = NULL;
|
||||
}
|
||||
|
||||
virtual Version GetVersion()
|
||||
|
@ -232,6 +232,7 @@ class ModuleXLineDB : public Module
|
||||
}
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -43,6 +43,7 @@ void InspIRCd::Exit(int status)
|
||||
{
|
||||
this->SendError("Exiting with status " + ConvToStr(status) + " (" + std::string(ExitCodes[status]) + ")");
|
||||
this->Cleanup();
|
||||
delete this;
|
||||
}
|
||||
exit (status);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user