[vlc-commits] flac demux: fix seekpoint leak

Rafaël Carré git at videolan.org
Sat Jun 22 11:14:38 CEST 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Jun 22 11:11:55 2013 +0200| [826b0a2d30d8676158e123a6b2e22d362bdad784] | committer: Rafaël Carré

flac demux: fix seekpoint leak

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=826b0a2d30d8676158e123a6b2e22d362bdad784
---

 modules/demux/flac.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/demux/flac.c b/modules/demux/flac.c
index c934f24..878fc0a 100644
--- a/modules/demux/flac.c
+++ b/modules/demux/flac.c
@@ -178,10 +178,11 @@ static void Close( vlc_object_t * p_this )
     demux_t     *p_demux = (demux_t*)p_this;
     demux_sys_t *p_sys = p_demux->p_sys;
 
+    for( int i = 0; i < p_sys->i_seekpoint; i++ )
+        vlc_seekpoint_Delete(p_sys->seekpoint[i]);
     TAB_CLEAN( p_sys->i_seekpoint, p_sys->seekpoint );
 
-    int i;
-    for( i = 0; i < p_sys->i_attachments; i++ )
+    for( int i = 0; i < p_sys->i_attachments; i++ )
         vlc_input_attachment_Delete( p_sys->attachments[i] );
     TAB_CLEAN( p_sys->i_attachments, p_sys->attachments);
 



More information about the vlc-commits mailing list