[vlc-commits] flac demux: fix picture 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:10:10 2013 +0200| [c8d812a3393bd3c84feea0b50c608be2d4f95135] | committer: Rafaël Carré

flac demux: fix picture leak

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

 modules/demux/flac.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/flac.c b/modules/demux/flac.c
index 6e2f45d..b4beb12 100644
--- a/modules/demux/flac.c
+++ b/modules/demux/flac.c
@@ -182,7 +182,7 @@ static void Close( vlc_object_t * p_this )
 
     int i;
     for( i = 0; i < p_sys->i_attachments; i++ )
-        free( p_sys->attachments[i] );
+        vlc_input_attachment_Delete( p_sys->attachments[i] );
     TAB_CLEAN( p_sys->i_attachments, p_sys->attachments);
 
     /* Delete the decoder */



More information about the vlc-commits mailing list