Commit e5bc7ca6 authored by Pierre Lamot's avatar Pierre Lamot Committed by Jean-Baptiste Kempf

lua: close lua state after deactivating extension

fix: #19509
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent ff0d2f1c
......@@ -678,7 +678,14 @@ int lua_ExtensionDeactivate( extensions_manager_t *p_mgr, extension_t *p_ext )
p_ext->p_sys->p_input = NULL;
return lua_ExecuteFunction( p_mgr, p_ext, "deactivate", LUA_END );
int i_ret = lua_ExecuteFunction( p_mgr, p_ext, "deactivate", LUA_END );
if ( p_ext->p_sys->L == NULL )
lua_close( p_ext->p_sys->L );
p_ext->p_sys->L = NULL;
return i_ret;
int lua_ExtensionWidgetClick( extensions_manager_t *p_mgr,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment