Commit 6d639ecf authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 336bb3f7
...@@ -51,7 +51,7 @@ void av_audio_fifo_free(AVAudioFifo *af) ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment