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

flac demux: fix picture leak

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

 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 f4d7ee5..c934f24 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