Commit 24158b6c authored by Jean-Paul Saman's avatar Jean-Paul Saman

Backport of [22325]: Fixed tiny race condition.

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