mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 01:02:33 +00:00
buffersink/uninit: use av_frame_free() not unref
Fixes memleak Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
70db0c9156
commit
62f56fd7ea
@ -63,7 +63,7 @@ static av_cold void uninit(AVFilterContext *ctx)
|
||||
if (sink->fifo) {
|
||||
while (av_fifo_size(sink->fifo) >= sizeof(AVFilterBufferRef *)) {
|
||||
av_fifo_generic_read(sink->fifo, &frame, sizeof(frame), NULL);
|
||||
av_frame_unref(frame);
|
||||
av_frame_free(&frame);
|
||||
}
|
||||
av_fifo_free(sink->fifo);
|
||||
sink->fifo = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user