Revert "Detach the children at object destruction"
authorRafaël Carré <funman@videolan.org>
Fri, 16 May 2008 12:14:59 +0000 (14:14 +0200)
committerRafaël Carré <funman@videolan.org>
Fri, 16 May 2008 12:14:59 +0000 (14:14 +0200)
This reverts commit e5b3d194ffa17dcbf57e69ebf83c3730e8938932.

src/misc/objects.c

index f688643..010d64d 100644 (file)
@@ -872,7 +872,7 @@ void __vlc_object_release( vlc_object_t *p_this )
         vlc_object_detach_unlocked (p_this);
     /* Detach from children to protect against FIND_PARENT */
     for (int i = 0; i < p_this->i_children; i++)
-        vlc_object_detach_unlocked( p_this->pp_children[i] );
+        p_this->pp_children[i]->p_parent = NULL;
 
     vlc_mutex_unlock( &structure_lock );