Browse Source

lua: Destroy the callback before destroying the variable

pull/35/merge
Hugo Beauzée-Luyssen 11 years ago
parent
commit
ea1db09bec
  1. 5
      modules/lua/extension.c

5
modules/lua/extension.c

@ -141,6 +141,8 @@ void Close_Extension( vlc_object_t *p_this )
p_mgr->p_sys->b_killed = true;
vlc_mutex_unlock( &p_mgr->lock );
var_DelCallback( p_this, "dialog-event",
vlclua_extension_dialog_callback, NULL );
var_Destroy( p_mgr, "dialog-event" );
extension_t *p_ext = NULL;
@ -188,9 +190,6 @@ void Close_Extension( vlc_object_t *p_this )
FOREACH_END()
ARRAY_RESET( p_mgr->extensions );
var_DelCallback( p_this, "dialog-event",
vlclua_extension_dialog_callback, NULL );
}
/**

Loading…
Cancel
Save