mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00: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:
parent
3537ddb76f
commit
ea77d3b889
@ -190,8 +190,8 @@ static av_cold int atrac3_decode_close(AVCodecContext *avctx)
|
||||
{
|
||||
ATRAC3Context *q = avctx->priv_data;
|
||||
|
||||
av_free(q->units);
|
||||
av_free(q->decoded_bytes_buffer);
|
||||
av_freep(&q->units);
|
||||
av_freep(&q->decoded_bytes_buffer);
|
||||
|
||||
ff_mdct_end(&q->mdct_ctx);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user