]> git.sesse.net Git - vlc/commitdiff
Do not leak the global libvlc pointer
authorRafaël Carré <funman@videolan.org>
Mon, 5 May 2008 09:31:16 +0000 (11:31 +0200)
committerRafaël Carré <funman@videolan.org>
Mon, 5 May 2008 09:31:16 +0000 (11:31 +0200)
src/misc/threads.c

index 5abe9744327d7fb8015044b4077bea1fec4e7bd4..eb907eee467900b14d4b16e25feedbadf16ef65f 100644 (file)
@@ -183,7 +183,8 @@ void vlc_threads_end( void )
 #endif
 
     assert( i_initializations > 0 );
-    if( i_initializations == 0 )
+
+    if( i_initializations == 1 )
         vlc_object_release( p_root );
     i_initializations--;