Browse Source

lavc/options: fix leaks in avcodec_free_context

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
tags/n2.5
Lukasz Marek 10 years ago
parent
commit
345cfd04d0
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/options.c

+ 3
- 0
libavcodec/options.c View File

@@ -170,6 +170,9 @@ void avcodec_free_context(AVCodecContext **pavctx)


av_freep(&avctx->extradata); av_freep(&avctx->extradata);
av_freep(&avctx->subtitle_header); av_freep(&avctx->subtitle_header);
av_freep(&avctx->intra_matrix);
av_freep(&avctx->inter_matrix);
av_freep(&avctx->rc_override);


av_freep(pavctx); av_freep(pavctx);
} }


Loading…
Cancel
Save