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

vlc_object_detach_unlocked: don't check impossible case

parent eed0e736
...@@ -628,8 +628,7 @@ void __vlc_object_attach( vlc_object_t *p_this, vlc_object_t *p_parent ) ...@@ -628,8 +628,7 @@ void __vlc_object_attach( vlc_object_t *p_this, vlc_object_t *p_parent )
static void vlc_object_detach_unlocked (vlc_object_t *p_this) static void vlc_object_detach_unlocked (vlc_object_t *p_this)
{ {
if (p_this->p_parent == NULL) assert (p_this->p_parent != NULL);
return;
vlc_object_internals_t *pap = vlc_internals (p_this->p_parent); vlc_object_internals_t *pap = vlc_internals (p_this->p_parent);
vlc_object_internals_t *priv = vlc_internals (p_this); vlc_object_internals_t *priv = vlc_internals (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