]> git.sesse.net Git - vlc/blobdiff - src/misc/objects.c
Hack to get the leaked object tree back
[vlc] / src / misc / objects.c
index 3f551900d97d9eb0a88d9c31e61e3d3f0cda9cc1..13f1a849056f6efb56319936444ec5cf17f48b5f 100644 (file)
@@ -572,8 +572,6 @@ void __vlc_object_release( vlc_object_t *p_this )
 
     if( b_should_destroy )
     {
-        /* We have no children */
-        assert (internals->i_children == 0);
         parent = p_this->p_parent;
 
 #ifndef NDEBUG
@@ -607,6 +605,9 @@ void __vlc_object_release( vlc_object_t *p_this )
         if (parent)
             /* Detach from parent to protect against FIND_CHILDREN */
             vlc_object_detach_unlocked (p_this);
+
+        /* We have no children */
+        assert (internals->i_children == 0);
     }
     libvlc_unlock (p_this->p_libvlc);