]> git.sesse.net Git - vlc/commitdiff
dbus: free the events array.
authorRémi Duraffort <ivoire@videolan.org>
Wed, 25 Mar 2009 12:17:47 +0000 (13:17 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 25 Mar 2009 12:17:47 +0000 (13:17 +0100)
modules/control/dbus.c

index c6c0fd9fbf35ac1b835f9a28e3b4495bdbf013eb..2753140710742b42bab9ade2db57f424b63be128 100644 (file)
@@ -815,6 +815,12 @@ static void Close   ( vlc_object_t *p_this )
 
     dbus_connection_unref( p_intf->p_sys->p_conn );
 
+    // Free the events array
+    for( int i = 0; i < vlc_array_count( p_intf->p_sys->p_events ); i++ )
+    {
+        callback_info_t* info = vlc_array_item_at_index( p_intf->p_sys->p_events, i );
+        free( info );
+    }
     vlc_mutex_destroy( &p_intf->p_sys->lock );
     vlc_array_destroy( p_intf->p_sys->p_events );
     free( p_intf->p_sys );