mem: clean up logger and svcctrl on exit
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3688 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -3264,7 +3264,12 @@ void serverslice(uint timeout) // main server update, called from cube main lo
|
||||
void cleanupserver()
|
||||
{
|
||||
if(serverhost) enet_host_destroy(serverhost);
|
||||
if(svcctrl) svcctrl->stop();
|
||||
if(svcctrl)
|
||||
{
|
||||
svcctrl->stop();
|
||||
DELETEP(svcctrl);
|
||||
}
|
||||
if(logger) DELETEP(logger);
|
||||
}
|
||||
|
||||
void extinfo_cnbuf(ucharbuf &p, int cn)
|
||||
|
||||
Reference in New Issue
Block a user