wplua: implement reference counting of the lua_State

This commit is contained in:
George Kiagiadakis
2022-04-04 17:56:36 +03:00
parent 9c22f6076a
commit 9387ce0d95
4 changed files with 43 additions and 17 deletions

View File

@@ -178,7 +178,7 @@ wp_lua_scripting_plugin_disable (WpPlugin * plugin)
{
WpLuaScriptingPlugin * self = WP_LUA_SCRIPTING_PLUGIN (plugin);
g_clear_pointer (&self->L, wplua_free);
g_clear_pointer (&self->L, wplua_unref);
g_clear_object (&self->export_core);
}