From 7aa4622222d3cc88b2d6c2e5552bc372272c3123 Mon Sep 17 00:00:00 2001 From: santouits Date: Thu, 27 Jun 2019 03:25:36 +0300 Subject: [PATCH] Free server id pools directly. When closing the game, we flush the command queue but after we are pushing the freeing calls of the id pool to the command queue and they are never being run. Now we free them directly. --- servers/server_wrap_mt_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/server_wrap_mt_common.h b/servers/server_wrap_mt_common.h index f0ab2563749..a6f595d7760 100644 --- a/servers/server_wrap_mt_common.h +++ b/servers/server_wrap_mt_common.h @@ -50,7 +50,7 @@ } \ void m_type##_free_cached_ids() { \ while (m_type##_id_pool.size()) { \ - free(m_type##_id_pool.front()->get()); \ + server_name->free(m_type##_id_pool.front()->get()); \ m_type##_id_pool.pop_front(); \ } \ } \