Browse Source

Fix mem leak.

Patch by Ralf Terdic contact >AT< jswiff com

Originally committed as revision 15612 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Ralf Terdic Benoit Fouet 17 years ago
parent
commit
5c4e97282f
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/libx264.c

+ 2
- 0
libavcodec/libx264.c 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);




Loading…
Cancel
Save