]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
Added CL_Shutdown which took care of 14 memory leaks totaling over 30mb. (needs more...
[xonotic/darkplaces.git] / cl_main.c
index ca72d8a72aa88dc91582840ba8efff271f9c2724..8f244af96edb799d35343819b7c34dc6113b81ae 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1300,6 +1300,17 @@ static void CL_TimeRefresh_f (void)
        Con_Printf("%f seconds (%f fps)\n", timedelta, 128/timedelta);
 }
 
+/*
+===========
+CL_Shutdown
+===========
+*/
+void CL_Shutdown (void)
+{
+       Mem_FreePool (&cl_entities_mempool);
+       Mem_FreePool (&cl_refdef_mempool);
+}
+
 /*
 =================
 CL_Init