Commit 6878660d authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

misc/events.c: Avoid leaking the array.

parent 37b5fbbe
......@@ -105,8 +105,10 @@ void vlc_event_manager_fini( vlc_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 );
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment