Commit 29e6e23f authored by Rafaël Carré's avatar Rafaël Carré

Do not leak the global libvlc pointer

parent f0f97b4e
...@@ -183,7 +183,8 @@ void vlc_threads_end( void ) ...@@ -183,7 +183,8 @@ void vlc_threads_end( void )
#endif #endif
assert( i_initializations > 0 ); assert( i_initializations > 0 );
if( i_initializations == 0 )
if( i_initializations == 1 )
vlc_object_release( p_root ); vlc_object_release( p_root );
i_initializations--; i_initializations--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment