[vlc-commits] dbus: fix memory leaks (cid #1048913)

Rémi Duraffort git at videolan.org
Wed Dec 11 18:59:46 CET 2013


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Dec 11 18:49:42 2013 +0100| [5cc6eadcf8c26da7eafbeb0d3df4f8928893c636] | committer: Rémi Duraffort

dbus: fix memory leaks (cid #1048913)

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

 modules/control/dbus/dbus_root.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/control/dbus/dbus_root.c b/modules/control/dbus/dbus_root.c
index 32bed17..a94a38d 100644
--- a/modules/control/dbus/dbus_root.c
+++ b/modules/control/dbus/dbus_root.c
@@ -495,6 +495,7 @@ PropertiesChangedSignal( intf_thread_t    *p_intf,
 
         free( ppsz_properties[i] );
     }
+    free( ppsz_properties );
 
     if( !dbus_message_iter_close_container( &args, &changed_properties ) )
         return DBUS_HANDLER_RESULT_NEED_MEMORY;
@@ -506,8 +507,6 @@ PropertiesChangedSignal( intf_thread_t    *p_intf,
     if( !dbus_message_iter_close_container( &args, &invalidated_properties ) )
         return DBUS_HANDLER_RESULT_NEED_MEMORY;
 
-    free( ppsz_properties );
-
     SIGNAL_SEND;
 }
 



More information about the vlc-commits mailing list