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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-12-27 15:49:13 +01:00
parent 336bb3f706
commit 6d639ecf44

View File

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