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

Make vlc_object_detach a no-op if the object is not attached

parent 8dba8057
......@@ -918,7 +918,10 @@ 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)
{
assert (p_this->p_parent);
vlc_assert_locked (&structure_lock);
if (p_this->p_parent == NULL)
return;
vlc_object_internals_t *priv = vlc_internals( p_this->p_parent );
......
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