Commit a2b1a6f8 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

messages: Make sure banks is never == 0 before --;

parent 65c17bc5
...@@ -172,6 +172,7 @@ void msg_Destroy (libvlc_int_t *p_libvlc) ...@@ -172,6 +172,7 @@ void msg_Destroy (libvlc_int_t *p_libvlc)
msg_Err( p_libvlc, "stale interface subscribers (VLC might crash)" ); msg_Err( p_libvlc, "stale interface subscribers (VLC might crash)" );
vlc_mutex_lock( &msg_stack_lock ); vlc_mutex_lock( &msg_stack_lock );
assert(banks > 0);
if( --banks == 0 ) if( --banks == 0 )
vlc_threadvar_delete( &msg_context ); vlc_threadvar_delete( &msg_context );
vlc_mutex_unlock( &msg_stack_lock ); vlc_mutex_unlock( &msg_stack_lock );
......
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