]> git.sesse.net Git - vlc/commitdiff
* cmml/intf.c: Fix refcount leak on main interface (thanks to gibalou for help)
authorAndre Pang <andrep@videolan.org>
Tue, 11 Jan 2005 13:19:20 +0000 (13:19 +0000)
committerAndre Pang <andrep@videolan.org>
Tue, 11 Jan 2005 13:19:20 +0000 (13:19 +0000)
modules/codec/cmml/intf.c

index e409851d3a11be40fab010428526b7a026159d18..2c53863b402cc811bfbb4f54b3376383c57a5f13 100644 (file)
@@ -315,8 +315,14 @@ static int DisplayPendingAnchor( intf_thread_t *p_intf, vout_thread_t *p_vout )
             if( var_Get( p_primary_intf, "intf-displays-cmml-description", &val )
                     == VLC_SUCCESS )
             {
-                if( val.b_bool == VLC_TRUE ) return VLC_TRUE;
+                if( val.b_bool == VLC_TRUE )
+                {
+                    vlc_object_release( p_primary_intf );
+                    return VLC_TRUE;
+                }
             }
+
+            vlc_object_release( p_primary_intf );
         }
 
         /* display anchor as subtitle on-screen */