[vlc-devel] commit: dbus: free the events array. ( Rémi Duraffort )
git version control
git at videolan.org
Wed Mar 25 14:14:30 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Mar 25 13:17:47 2009 +0100| [f1458f0d550edce50eb59be1bebfa389dac7bace] | committer: Rémi Duraffort
dbus: free the events array.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f1458f0d550edce50eb59be1bebfa389dac7bace
---
modules/control/dbus.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/control/dbus.c b/modules/control/dbus.c
index c6c0fd9..2753140 100644
--- a/modules/control/dbus.c
+++ b/modules/control/dbus.c
@@ -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 );
More information about the vlc-devel
mailing list