[FFmpeg-cvslog] r14003 - trunk/libavformat/psxstr.c

michael subversion
Fri Jun 27 01:02:42 CEST 2008


Author: michael
Date: Fri Jun 27 01:02:42 2008
New Revision: 14003

Log:
memleak


Modified:
   trunk/libavformat/psxstr.c

Modified: trunk/libavformat/psxstr.c
==============================================================================
--- trunk/libavformat/psxstr.c	(original)
+++ trunk/libavformat/psxstr.c	Fri Jun 27 01:02:42 2008
@@ -242,6 +242,11 @@ static int str_read_packet(AVFormatConte
 static int str_read_close(AVFormatContext *s)
 {
     StrDemuxContext *str = s->priv_data;
+    int i;
+    for(i=0; i<32; i++){
+        if(str->channels[i].tmp_pkt.data)
+            av_free_packet(&str->channels[i].tmp_pkt);
+    }
 
     return 0;
 }




More information about the ffmpeg-cvslog mailing list