diff options
author | Ralf Terdic <contact@jswiff.com> | 2008-10-13 17:47:05 +0400 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2008-10-13 17:47:05 +0400 |
commit | 5c4e97282f52d4045bd4498805f508ca50b313dd (patch) | |
tree | c1f86925dfd2fb564256a534d150b7b3d7997b59 /libavcodec/libx264.c | |
parent | 95240bf3e3887cf4c04a27f9bd5831051a73d55b (diff) |
Fix mem leak.
Patch by Ralf Terdic contact >AT< jswiff com
Originally committed as revision 15612 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r-- | libavcodec/libx264.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |