Commit e8f4f5b2 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 <jb@videolan.org>
(cherry picked from commit e5bc7ca6)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9cb95487
......@@ -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 )
return VLC_EGENERIC;
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