]> git.sesse.net Git - vlc/commitdiff
* Fix a refcount issue in the OSD core
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 8 Sep 2005 13:55:25 +0000 (13:55 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Thu, 8 Sep 2005 13:55:25 +0000 (13:55 +0000)
src/video_output/video_widgets.c

index c9fa82b13dab3a283e4987128b911374efe2e763..2db96e603aa4cedff8b4f978333ef1c105f4779f 100644 (file)
@@ -60,9 +60,11 @@ void vout_OSDIcon( vlc_object_t *p_caller, int i_channel, short i_type )
 
     if( !p_vout ) return;
 
-    if( p_vout && config_GetInt( p_caller, "osd" ) )
+    if( config_GetInt( p_caller, "osd" ) )
     {
         osd_Icon( p_caller, p_vout->p_spu, p_vout->render.i_width,
             p_vout->render.i_height, i_channel, i_type );
     }
+    vlc_object_release( p_vout );
 }
+