[FFmpeg-cvslog] r10719 - trunk/libavformat/asf.c

ramiro subversion
Sat Oct 13 01:25:48 CEST 2007


Author: ramiro
Date: Sat Oct 13 01:25:48 2007
New Revision: 10719

Log:
Fix memleak
Closes issue 102

Modified:
   trunk/libavformat/asf.c

Modified: trunk/libavformat/asf.c
==============================================================================
--- trunk/libavformat/asf.c	(original)
+++ trunk/libavformat/asf.c	Sat Oct 13 01:25:48 2007
@@ -878,10 +878,13 @@ static int asf_read_packet(AVFormatConte
     return 0;
 }
 
+static void asf_reset_header(AVFormatContext *s);
+
 static int asf_read_close(AVFormatContext *s)
 {
     int i;
 
+    asf_reset_header(s);
     for(i=0;i<s->nb_streams;i++) {
         AVStream *st = s->streams[i];
         av_free(st->priv_data);




More information about the ffmpeg-cvslog mailing list