[vlc-devel] commit: Fix memory leak ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jul 6 21:25:30 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jul 6 22:27:40 2008 +0300| [d672542925904f94e403021e5d3db6c8e73d928f]
Fix memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d672542925904f94e403021e5d3db6c8e73d928f
---
src/libvlc.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/libvlc.c b/src/libvlc.c
index 1d92f0c..276e120 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -974,10 +974,8 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
msg_Dbg( p_libvlc, "removing all video outputs" );
vlc_list_t *list = vlc_list_find (p_libvlc, VLC_OBJECT_VOUT, FIND_CHILD);
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_list_release (list);
stats_TimersDumpAll( p_libvlc );
stats_TimersCleanAll( p_libvlc );
More information about the vlc-devel
mailing list