]> git.sesse.net Git - vlc/commitdiff
dbus: fix vout leak
authorErwan Tulou <erwan10@videolan.org>
Thu, 2 Aug 2012 21:56:39 +0000 (23:56 +0200)
committerErwan Tulou <erwan10@videolan.org>
Thu, 2 Aug 2012 22:07:57 +0000 (00:07 +0200)
This accounts for sporadic assert failed at vlc termination.

modules/control/dbus/dbus_root.c

index 76e4c7bdc15c1190a5354d383448c3680921286a..1b6b962d925d5a87770726d8b4e7860696fb9381 100644 (file)
@@ -111,7 +111,10 @@ MarshalCanSetFullscreen( intf_thread_t *p_intf, DBusMessageIter *container )
         vlc_object_release( p_input );
 
         if ( p_vout )
+        {
             b_ret = TRUE;
+            vlc_object_release( p_vout );
+        }
     }
 
     dbus_message_iter_append_basic( container, DBUS_TYPE_BOOLEAN, &b_ret );