]> git.sesse.net Git - vlc/commitdiff
Fix tiny race condition
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 30 Sep 2007 14:11:47 +0000 (14:11 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 30 Sep 2007 14:11:47 +0000 (14:11 +0000)
src/osd/osd.c

index 5c73a69d87ca8e1a5d1ccc9d5d83c9935c6d2c37..0026a7993e310301a6a86147e6f35862d487aea5 100644 (file)
@@ -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;
 }