X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=host.c;h=ee9248670c5c4feeca09c705faee3e68590ea68b;hb=3bd09867d9c573873debc4d2044cfb02728a4ddf;hp=513afcc8658fc5713a911e48b98177c1cb1ff9aa;hpb=088a68a8be2d6b426f4d2046a3f02c14466edcc9;p=xonotic%2Fdarkplaces.git diff --git a/host.c b/host.c index 513afcc8..ee924867 100644 --- a/host.c +++ b/host.c @@ -214,7 +214,7 @@ void Host_ServerOptions (void) Cvar_SetValueQuick(&deathmatch, 1); svs.maxclients = numplayers; - sv_clients_mempool = Mem_AllocPool("server clients"); + sv_clients_mempool = Mem_AllocPool("server clients", 0, NULL); svs.clients = Mem_Alloc(sv_clients_mempool, sizeof(client_t) * svs.maxclients); } @@ -455,8 +455,12 @@ void SV_DropClient(qboolean crash) NetConn_Heartbeat(1); // free the client now + if (host_client->entitydatabase) + EntityFrame_FreeDatabase(host_client->entitydatabase); if (host_client->entitydatabase4) EntityFrame4_FreeDatabase(host_client->entitydatabase4); + if (host_client->entitydatabase5) + EntityFrame5_FreeDatabase(host_client->entitydatabase5); // clear the client struct (this sets active to false) memset(host_client, 0, sizeof(*host_client)); } @@ -949,5 +953,6 @@ void Host_Shutdown(void) } Sys_Shutdown(); + Log_Close (); }