[vlc-commits] Revert "libvlc: add leak debugging code"
Steve Lhomme
git at videolan.org
Mon Apr 15 08:48:08 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Apr 15 08:47:27 2019 +0200| [6a4f370211edcea688ad62075de888ffe6e9fa29] | 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=6a4f370211edcea688ad62075de888ffe6e9fa29
---
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