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:
driAn
2008-11-20 21:01:51 +00:00
parent c7138d58cd
commit f99f0808ff
+6 -1
View File
@@ -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)