[vlc-commits] lua: Destroy the callback before destroying the variable
Hugo Beauzée-Luyssen
git at videolan.org
Tue Dec 8 19:28:06 CET 2015
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Dec 8 18:27:21 2015 +0100| [ea1db09becdfe6b05233f312592c33d63c025f96] | committer: Hugo Beauzée-Luyssen
lua: Destroy the callback before destroying the variable
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ea1db09becdfe6b05233f312592c33d63c025f96
---
modules/lua/extension.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/lua/extension.c b/modules/lua/extension.c
index 5958af1..9546e4c 100644
--- a/modules/lua/extension.c
+++ b/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 );
}
/**
More information about the vlc-commits
mailing list