[vlc-commits] dbus: fix vout leak

Erwan Tulou git at videolan.org
Fri Aug 3 00:09:49 CEST 2012


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Thu Aug  2 23:56:39 2012 +0200| [cf560768918a3e7c2f514398757c5d3bffa04e0b] | committer: Erwan Tulou

dbus: fix vout leak

This accounts for sporadic assert failed at vlc termination.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf560768918a3e7c2f514398757c5d3bffa04e0b
---

 modules/control/dbus/dbus_root.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/control/dbus/dbus_root.c b/modules/control/dbus/dbus_root.c
index 76e4c7b..1b6b962 100644
--- a/modules/control/dbus/dbus_root.c
+++ b/modules/control/dbus/dbus_root.c
@@ -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 );



More information about the vlc-commits mailing list