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

objects: small simplification

No functional changes
parent aa78e9d3
...@@ -319,7 +319,7 @@ static void vlc_object_destroy( vlc_object_t *p_this ) ...@@ -319,7 +319,7 @@ 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))) if (unlikely(p_this->p_parent == NULL))
{ {
/* TODO: should be in src/libvlc.c */ /* TODO: should be in src/libvlc.c */
var_DelCallback (p_this, "vars", VarsCommand, NULL); var_DelCallback (p_this, "vars", VarsCommand, NULL);
......
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