[vlc-commits] dbus: Fix memleak and remove warnings

Mirsal Ennaime git at videolan.org
Tue Jun 7 20:08:01 CEST 2011


vlc | branch: master | Mirsal Ennaime <mirsal at mirsal.fr> | Tue Jun  7 18:59:45 2011 +0200| [b5e4616ebd4a47ff886fa119ec3b2026c7a59f68] | committer: Mirsal Ennaime

dbus: Fix memleak and remove warnings

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

 modules/control/dbus/dbus.c           |    2 ++
 modules/control/dbus/dbus_tracklist.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/control/dbus/dbus.c b/modules/control/dbus/dbus.c
index d27590e..6f34f15 100644
--- a/modules/control/dbus/dbus.c
+++ b/modules/control/dbus/dbus.c
@@ -1259,6 +1259,8 @@ int GetInputMeta( input_item_t* p_input,
     ADD_VLC_META_STRING( 24, Setting );
     ADD_VLC_META_STRING( 25, URL );
 
+    free( psz_trackid );
+
     vlc_mutex_lock( &p_input->lock );
     if( p_input->p_meta )
     {
diff --git a/modules/control/dbus/dbus_tracklist.c b/modules/control/dbus/dbus_tracklist.c
index c408845..1cc1c74 100644
--- a/modules/control/dbus/dbus_tracklist.c
+++ b/modules/control/dbus/dbus_tracklist.c
@@ -364,7 +364,7 @@ PropertiesChangedSignal( intf_thread_t    *p_intf,
                          vlc_dictionary_t *p_changed_properties )
 {
     DBusConnection  *p_conn = p_intf->p_sys->p_conn;
-    DBusMessageIter changed_properties, invalidated_properties, entry, variant;
+    DBusMessageIter changed_properties, invalidated_properties;
     const char *psz_interface_name = DBUS_MPRIS_TRACKLIST_INTERFACE;
     char **ppsz_properties = NULL;
     int i_properties = 0;



More information about the vlc-commits mailing list