From 7de181506c39b985d12023f3a398436314ebcbc2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 20 Nov 2013 11:26:11 +0000 Subject: [PATCH] Do not destroy memory pools in lua automatically. --- src/lua/lua_mempool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/lua_mempool.c b/src/lua/lua_mempool.c index 7b95d6c0c..8eb0af5dc 100644 --- a/src/lua/lua_mempool.c +++ b/src/lua/lua_mempool.c @@ -43,7 +43,7 @@ static const struct luaL_reg mempoollib_m[] = { LUA_INTERFACE_DEF (mempool, memory_pool_get_size), LUA_INTERFACE_DEF (mempool, memory_pool_set_variable), LUA_INTERFACE_DEF (mempool, memory_pool_get_variable), - {"__gc", lua_mempool_memory_pool_delete}, + {"destroy", lua_mempool_memory_pool_delete}, {"__tostring", lua_class_tostring}, {NULL, NULL} }; -- 2.39.5