Commit 993a2487 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 52bf4ad6
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment