[vlc-devel] commit: libvlc_event: Fix a typo in libvlc_event_manager_release(), that result in a double free(). (Issue reported by Rov Juvano). (Pierre d' Herbemont )
git version control
git at videolan.org
Sun Jun 15 17:20:38 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Jun 15 17:22:27 2008 +0200| [df4a1af939008b0d1064ab7d67097138630ea761]
libvlc_event: Fix a typo in libvlc_event_manager_release(), that result in a double free(). (Issue reported by Rov Juvano).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df4a1af939008b0d1064ab7d67097138630ea761
---
src/control/event.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/control/event.c b/src/control/event.c
index dc0d643..75c98d8 100644
--- a/src/control/event.c
+++ b/src/control/event.c
@@ -101,7 +101,7 @@ void libvlc_event_manager_release( libvlc_event_manager_t * p_em )
p_lg = vlc_array_item_at_index( &p_em->listeners_groups, i );
for( j = 0; j < vlc_array_count(&p_lg->listeners); j++)
- free( vlc_array_item_at_index( &p_em->listeners_groups, i ) );
+ free( vlc_array_item_at_index( &p_em->listeners_groups, j ) );
vlc_array_clear( &p_lg->listeners );
free( p_lg );
More information about the vlc-devel
mailing list