瀏覽代碼

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.

(cherry picked from commit 7aa4622222d3cc88b2d6c2e5552bc372272c3123)
santouits 6 年之前
父節點
當前提交
1c8984c433
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      servers/server_wrap_mt_common.h

+ 1 - 1
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();                                                  \
 		}                                                                                  \
 	}                                                                                      \