diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-07-05 08:31:08 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-07-05 08:31:08 +0000 |
commit | 147e5200ca1d9ab09867c22b235aff5981799711 (patch) | |
tree | 9b869dad4c5a1cfdb6934251d15ddd65bcb59db5 /libavcodec/mpegvideo.c | |
parent | 342474abd9409b50a0809cf573590fbcd005c081 (diff) | |
download | ffmpeg-147e5200ca1d9ab09867c22b235aff5981799711.tar.gz |
memleak fix by (Jake Page <jake at CS dot Stanford dot EDU>)
with minor fix by me
Originally committed as revision 2014 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index ebdd4858d8..927e973c0e 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -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); |