[vlc-commits] flac demux: fix seekpoint leak
Rafaël Carré
git at videolan.org
Sat Jun 22 11:20:01 CEST 2013
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Jun 22 11:11:55 2013 +0200| [212048ace8d2eb425c96589035d4530ced5ce47b] | committer: Rafaël Carré
flac demux: fix seekpoint leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=212048ace8d2eb425c96589035d4530ced5ce47b
---
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 b4beb12..8860b8e 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