control/event.c: Don't leak the ARRAY.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 27 Aug 2007 21:04:20 +0000 (21:04 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 27 Aug 2007 21:04:20 +0000 (21:04 +0000)
src/control/event.c

index ba3428b..6bbcaa9 100644 (file)
@@ -97,8 +97,10 @@ void libvlc_event_manager_release( libvlc_event_manager_t * p_em )
         FOREACH_ARRAY( listener, listeners_group->listeners )
             free( listener );
         FOREACH_END()
+        ARRAY_RESET( listeners_group->listeners );
         free( listeners_group );
     FOREACH_END()
+    ARRAY_RESET( p_em->listeners_groups );
     free( p_em );
 }