Commit 39833482 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Cleanup tree and vars callbacks

parent b0f3b7ae
...@@ -258,6 +258,13 @@ static void vlc_object_destroy( vlc_object_t *p_this ) ...@@ -258,6 +258,13 @@ static void vlc_object_destroy( vlc_object_t *p_this )
if( p_priv->pf_destructor ) if( p_priv->pf_destructor )
p_priv->pf_destructor( p_this ); 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. */ /* Destroy the associated variables. */
var_DestroyAll( p_this ); var_DestroyAll( p_this );
......
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