[vlc-devel] commit: Remove the children leak detection which is not working anymore ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat May 17 18:23:54 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Sat May 17 19:25:19 2008 +0300| [848663122bc0a1ce567444fdab83a630b79ea6ae]

Remove the children leak detection which is not working anymore

If you have a better idea, you are welcome, but I am very doutful.

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

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

diff --git a/src/misc/objects.c b/src/misc/objects.c
index bb4a512..069d385 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -321,33 +321,6 @@ static void vlc_object_destroy( vlc_object_t *p_this )
     if( p_priv->pf_destructor )
         p_priv->pf_destructor( p_this );
 
-    /* Sanity checks */
-    if( p_priv->i_children )
-    {
-        int i;
-
-        fprintf( stderr,
-                 "ERROR: cannot delete object (%i, %s) with %d children\n",
-                 p_this->i_object_id, p_this->psz_object_name,
-                 p_priv->i_children );
-
-        for( i = 0; i < p_priv->i_children; i++ )
-        {
-            fprintf( stderr,
-                     "ERROR: Remaining children object "
-                     "(id:%i, type:%s, name:%s)\n",
-                     p_priv->pp_children[i]->i_object_id,
-                     p_priv->pp_children[i]->psz_object_type,
-                     p_priv->pp_children[i]->psz_object_name );
-        }
-        fflush(stderr);
-
-        /* Dump libvlc object to ease debugging */
-        vlc_object_dump( p_this->p_libvlc );
-
-        abort();
-    }
-
     /* Destroy the associated variables, starting from the end so that
      * no memmove calls have to be done. */
     while( p_priv->i_vars )




More information about the vlc-devel mailing list