Revert "libvlc: add leak debugging code"
authorSteve Lhomme <robux4@ycbcr.xyz>
Mon, 15 Apr 2019 06:47:27 +0000 (08:47 +0200)
committerSteve Lhomme <robux4@ycbcr.xyz>
Mon, 15 Apr 2019 06:47:58 +0000 (08:47 +0200)
This reverts commit 496001e6a204ce25a611163ed95e4b6721657bfe.

The objects don't leak anymore.

src/libvlc.c

index 483ad17..3c18c12 100644 (file)
@@ -463,16 +463,6 @@ void libvlc_InternalDestroy( libvlc_int_t *p_libvlc )
 
     vlc_ExitDestroy( &priv->exit );
 
-#if 0
-    {
-        vlc_object_internals_t *internal = vlc_internals(p_libvlc);
-        if (atomic_load(&internal->refs) != 1)
-        {
-            fprintf(stderr, "=== vlc_object LEAKS detected ===\n");
-            DumpStructureLocked(VLC_OBJECT(p_libvlc), stderr, 0);
-        }
-    }
-#endif
     vlc_mutex_destroy(&priv->lock);
     vlc_object_delete(p_libvlc);
 }