Commit e18fc35a authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/libfdk-aacdec: use av_feeep() to avoid leaving stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5a1aa559
......@@ -177,8 +177,8 @@ static av_cold int fdk_aac_decode_close(AVCodecContext *avctx)
if (s->handle)
aacDecoder_Close(s->handle);
av_free(s->decoder_buffer);
av_free(s->anc_buffer);
av_freep(&s->decoder_buffer);
av_freep(&s->anc_buffer);
return 0;
}
......
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