Browse Source

Free in avcodec_close() avctx->rc_eq. Fix a memory leak.

Originally committed as revision 14260 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Stefano Sabatini 17 years ago
parent
commit
ef2b64f04c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/utils.c

+ 1
- 0
libavcodec/utils.c View File

@@ -973,6 +973,7 @@ int avcodec_close(AVCodecContext *avctx)
avctx->codec->close(avctx);
avcodec_default_free_buffers(avctx);
av_freep(&avctx->priv_data);
av_freep(&avctx->rc_eq);
avctx->codec = NULL;
entangled_thread_counter--;
return 0;


Loading…
Cancel
Save