[vlc-devel] commit: Detach the children at object destruction ( Rafaël Carré )

git version control git at videolan.org
Fri May 16 14:02:39 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri May 16 14:03:48 2008 +0200| [e5b3d194ffa17dcbf57e69ebf83c3730e8938932]

Detach the children at object destruction

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e5b3d194ffa17dcbf57e69ebf83c3730e8938932
---

 src/misc/objects.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/objects.c b/src/misc/objects.c
index 010d64d..f688643 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -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++)
-        p_this->pp_children[i]->p_parent = NULL;
+        vlc_object_detach_unlocked( p_this->pp_children[i] );
 
     vlc_mutex_unlock( &structure_lock );
 




More information about the vlc-devel mailing list