]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - menu.c
Cleaned up alot more memory leaks. (still get 720 leaks just running demo1.dem)
[xonotic/darkplaces.git] / menu.c
diff --git a/menu.c b/menu.c
index bfdcce896803bc724d93d4ecf2091c8a11ef8841..de17fe6f0b22cc2518a65f9f53b5daf6376328a7 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -3830,7 +3830,7 @@ void M_ServerList_Draw (void)
        if (*m_return_reason)
                M_Print(16, menu_height - 8, m_return_reason);
        y = 48;
-       visible = (menu_height - 16 - y) / 8;
+       visible = (menu_height - 16 - y) / 8 / 2;
        start = bound(0, slist_cursor - (visible >> 1), hostcache_viewcount - visible);
        end = min(start + visible, hostcache_viewcount);
 
@@ -4174,6 +4174,8 @@ void M_Shutdown(void)
 {
        // reset key_dest
        key_dest = key_game;
+
+       Mem_FreePool (&menu_mempool);
 }
 
 void M_Restart(void)