Commit 095cd049 authored by zorglub's avatar zorglub

Don't keep mutex locked if we bail out

parent f6f0e8ef
......@@ -466,7 +466,11 @@ void __intf_UserHide( vlc_object_t *p_this, int i_id )
vlc_mutex_lock( &p_interaction->object_lock );
p_dialog = intf_InteractionGetById( p_this, i_id );
if( !p_dialog ) return;
if( !p_dialog )
{
vlc_mutex_unlock( &p_interaction->object_lock );
return;
}
p_dialog->i_status = ANSWERED_DIALOG;
vlc_mutex_unlock( &p_interaction->object_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