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])
|
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…
x
Reference in New Issue
Block a user