[vlc-devel] commit: Detect LibVLC object leaks ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Mar 5 18:25:08 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Mar  5 19:24:12 2009 +0200| [1775b86891966052dcb46f123ddf77c849557cc6] | committer: Rémi Denis-Courmont 

Detect LibVLC object leaks

Since none of our otehr threads exist at the end, this is safe.

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

 src/libvlc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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




More information about the vlc-devel mailing list