1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-10-10 17:09:46 +02:00
parent 3537ddb76f
commit ea77d3b889

View File

@ -190,8 +190,8 @@ static av_cold int atrac3_decode_close(AVCodecContext *avctx)
{ {
ATRAC3Context *q = avctx->priv_data; ATRAC3Context *q = avctx->priv_data;
av_free(q->units); av_freep(&q->units);
av_free(q->decoded_bytes_buffer); av_freep(&q->decoded_bytes_buffer);
ff_mdct_end(&q->mdct_ctx); ff_mdct_end(&q->mdct_ctx);