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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/89/head
Michael Niedermayer 10 years ago
parent 3537ddb76f
commit ea77d3b889
  1. 4
      libavcodec/atrac3.c

@ -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…
Cancel
Save