avutil/audio_fifo: use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/101/head
Michael Niedermayer 10 years ago
parent 336bb3f706
commit 6d639ecf44
  1. 2
      libavutil/audio_fifo.c

@ -51,7 +51,7 @@ void av_audio_fifo_free(AVAudioFifo *af)
if (af->buf[i]) if (af->buf[i])
av_fifo_free(af->buf[i]); av_fifo_free(af->buf[i]);
} }
av_free(af->buf); av_freep(&af->buf);
} }
av_free(af); av_free(af);
} }

Loading…
Cancel
Save