diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-23 23:49:33 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-23 23:49:33 +0100 |
commit | 62f56fd7eae03b70e106a66bc8e2dac178d8738d (patch) | |
tree | 86a68d52c296990e83c6e8267ee2f0e12c55bb05 | |
parent | 70db0c91563f7a1fb5f17bf481d1207d99478573 (diff) | |
download | ffmpeg-62f56fd7eae03b70e106a66bc8e2dac178d8738d.tar.gz |
buffersink/uninit: use av_frame_free() not unref
Fixes memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/buffersink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index bcb6525102..0f500d0227 100644 --- a/libavfilter/buffersink.c +++ b/libavfilter/buffersink.c @@ -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; |