Skip to content
Snippets Groups Projects
Commit 496001e6 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

libvlc: add leak debugging code

disabled by default
parent 92d04ffd
No related branches found
No related tags found
No related merge requests found
......@@ -450,6 +450,16 @@ 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
assert( atomic_load(&(vlc_internals(p_libvlc)->refs)) == 1 );
vlc_object_delete(p_libvlc);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment