[vlc-commits] Cleanup tree and vars callbacks
Rémi Denis-Courmont
git at videolan.org
Tue Aug 9 17:02:59 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 9 17:59:31 2011 +0300| [398334821ce867410b072da25d04afdd4498e3d3] | committer: Rémi Denis-Courmont
Cleanup tree and vars callbacks
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=398334821ce867410b072da25d04afdd4498e3d3
---
src/misc/objects.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/misc/objects.c b/src/misc/objects.c
index 76612b4..fa36923 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -258,6 +258,13 @@ static void vlc_object_destroy( vlc_object_t *p_this )
if( p_priv->pf_destructor )
p_priv->pf_destructor( p_this );
+ if (unlikely(p_this == VLC_OBJECT(p_this->p_libvlc)))
+ {
+ /* TODO: should be in src/libvlc.c */
+ var_DelCallback (p_this, "tree", DumpCommand, p_this);
+ var_DelCallback (p_this, "vars", DumpCommand, p_this);
+ }
+
/* Destroy the associated variables. */
var_DestroyAll( p_this );
More information about the vlc-commits
mailing list