]> git.sesse.net Git - vlc/commitdiff
Detect LibVLC object leaks
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 5 Mar 2009 17:24:12 +0000 (19:24 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 5 Mar 2009 17:24:12 +0000 (19:24 +0200)
Since none of our otehr threads exist at the end, this is safe.

src/libvlc.c

index 3bc2d431cbdf5ad005cfca645bfaae6a2c55be22..235d000aebe40ba02170a0697f96ff84854314f4 100644 (file)
@@ -1133,6 +1133,7 @@ void libvlc_InternalDestroy( libvlc_int_t *p_libvlc )
     vlc_mutex_destroy( &priv->config_lock );
     vlc_mutex_destroy( &priv->timer_lock );
 
+    assert( vlc_internals( p_libvlc )->i_refcount == 1 );
     vlc_object_release( p_libvlc );
 }