1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Fix mem leak.

Patch by Ralf Terdic contact >AT< jswiff com

Originally committed as revision 15612 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ralf Terdic 2008-10-13 13:47:05 +00:00 committed by Benoit Fouet
parent 95240bf3e3
commit 5c4e97282f

View File

@ -124,6 +124,8 @@ X264_close(AVCodecContext *avctx)
{ {
X264Context *x4 = avctx->priv_data; X264Context *x4 = avctx->priv_data;
av_freep(&avctx->extradata);
if(x4->enc) if(x4->enc)
x264_encoder_close(x4->enc); x264_encoder_close(x4->enc);