Browse Source

avcodec/nellymoserenc: use av_freep(), do not leave stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 11 years ago
parent
commit
993a2487de
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/nellymoserenc.c

+ 2
- 2
libavcodec/nellymoserenc.c View File

@@ -138,8 +138,8 @@ static av_cold int encode_end(AVCodecContext *avctx)
ff_mdct_end(&s->mdct_ctx);

if (s->avctx->trellis) {
av_free(s->opt);
av_free(s->path);
av_freep(&s->opt);
av_freep(&s->path);
}
ff_af_queue_close(&s->afq);



Loading…
Cancel
Save