]> git.sesse.net Git - vlc/commitdiff
osd: Make sure we release properly in __osd_Volume.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 12 Jul 2008 19:37:39 +0000 (21:37 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 12 Jul 2008 20:27:05 +0000 (22:27 +0200)
src/osd/osd.c

index 4eb576d11d1137f76e0c87dbbc75da1e15008c80..87be707d6aabb3be2ce1f28575d52101b1c5950a 100644 (file)
@@ -706,9 +706,9 @@ void __osd_Volume( vlc_object_t *p_this )
             osd_SetMenuUpdate( p_osd, true );
             osd_SetMenuVisible( p_osd, true );
         }
-        vlc_object_release( (vlc_object_t*) p_osd );
         vlc_mutex_unlock( lockval.p_address );
     }
+    vlc_object_release( p_osd );
 }
 
 osd_button_t *__osd_ButtonFind( vlc_object_t *p_this, int i_x, int i_y,