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:
danieldg 2009-09-02 00:47:29 +00:00
parent 8085aa879b
commit 771016b997
4 changed files with 5 additions and 0 deletions

View File

@ -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);

View File

@ -470,6 +470,8 @@ class ModuleDCCAllow : public Module
virtual ~ModuleDCCAllow()
{
delete Conf;
Conf = NULL;
}
virtual Version GetVersion()

View File

@ -232,6 +232,7 @@ class ModuleXLineDB : public Module
}
}
fclose(f);
return true;
}

View File

@ -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);
}