memleak fix by (Jake Page <jake at CS dot Stanford dot EDU>)
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 5 Jul 2003 08:31:08 +0000 (08:31 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 5 Jul 2003 08:31:08 +0000 (08:31 +0000)
with minor fix by me

Originally committed as revision 2014 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegvideo.c

index ebdd4858d8d7caae9be0b1d7202cdcca32bad6a9..927e973c0e71cee72390f5c9e323c2748bd5ba9d 100644 (file)
@@ -476,6 +476,9 @@ void MPV_common_end(MpegEncContext *s)
 {
     int i;
 
+    av_freep(&s->parse_context.buffer);
+    s->parse_context.buffer_size=0;
+
     av_freep(&s->mb_type);
     av_freep(&s->p_mv_table_base);
     av_freep(&s->b_forw_mv_table_base);