[vlc-commits] Revert "libvlc: add leak debugging code"

Steve Lhomme git at videolan.org
Mon Apr 15 08:47:27 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Apr 15 08:47:27 2019 +0200| [a16cafd12b0b25a4ae585b39174f8041e5e08487] | committer: Steve Lhomme

Revert "libvlc: add leak debugging code"

This reverts commit 496001e6a204ce25a611163ed95e4b6721657bfe.

The objects don't leak anymore.

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

 src/libvlc.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index 483ad17e79..3c18c12da6 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -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);
 }



More information about the vlc-commits mailing list