Commit 736981af authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix tiny race condition

parent e0784be1
......@@ -116,8 +116,8 @@ osd_menu_t *__osd_MenuCreate( vlc_object_t *p_this, const char *psz_file )
error:
msg_Err( p_this, "creating OSD menu object failed" );
vlc_mutex_unlock( lockval.p_address );
vlc_object_destroy( p_osd );
vlc_mutex_unlock( lockval.p_address );
return NULL;
}
......
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