From 5c4e97282f52d4045bd4498805f508ca50b313dd Mon Sep 17 00:00:00 2001 From: Ralf Terdic Date: Mon, 13 Oct 2008 13:47:05 +0000 Subject: [PATCH] Fix mem leak. Patch by Ralf Terdic contact >AT< jswiff com Originally committed as revision 15612 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/libx264.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 4f7280b6d3..d82756b62f 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -124,6 +124,8 @@ X264_close(AVCodecContext *avctx) { X264Context *x4 = avctx->priv_data; + av_freep(&avctx->extradata); + if(x4->enc) x264_encoder_close(x4->enc);