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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-10-17 20:36:14 +02:00
parent 5a1aa55905
commit e18fc35a07
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}