From 60819e694ee5733741da91ebc237b20621de5bc3 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 23 Feb 2010 07:41:29 +0000 Subject: 10l trocadero: Indeo 5 decoder did not free custom VLCs for macroblock and block decoding at exit, so prevent that memory leak now. Originally committed as revision 21983 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/indeo5.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavcodec/indeo5.c') diff --git a/libavcodec/indeo5.c b/libavcodec/indeo5.c index e7ec538c39..050ee2b1a8 100644 --- a/libavcodec/indeo5.c +++ b/libavcodec/indeo5.c @@ -860,6 +860,9 @@ static av_cold int decode_close(AVCodecContext *avctx) ff_ivi_free_buffers(&ctx->planes[0]); + if (ctx->mb_vlc_cust.table) + free_vlc(&ctx->mb_vlc_cust); + if (ctx->frame.data[0]) avctx->release_buffer(avctx, &ctx->frame); -- cgit v1.2.3