Commit d6725429 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix memory leak

parent d1863133
...@@ -974,10 +974,8 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc ) ...@@ -974,10 +974,8 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
msg_Dbg( p_libvlc, "removing all video outputs" ); msg_Dbg( p_libvlc, "removing all video outputs" );
vlc_list_t *list = vlc_list_find (p_libvlc, VLC_OBJECT_VOUT, FIND_CHILD); vlc_list_t *list = vlc_list_find (p_libvlc, VLC_OBJECT_VOUT, FIND_CHILD);
for (int i = 0; i < list->i_count; i++) for (int i = 0; i < list->i_count; i++)
{
vlc_object_release (list->p_values[i].p_object);
vlc_object_release (list->p_values[i].p_object); vlc_object_release (list->p_values[i].p_object);
} vlc_list_release (list);
stats_TimersDumpAll( p_libvlc ); stats_TimersDumpAll( p_libvlc );
stats_TimersCleanAll( p_libvlc ); stats_TimersCleanAll( p_libvlc );
......
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