mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 23:33:07 +00:00
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:
parent
336bb3f706
commit
6d639ecf44
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user