aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/buffersink.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-23 23:49:33 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-23 23:49:33 +0100
commit62f56fd7eae03b70e106a66bc8e2dac178d8738d (patch)
tree86a68d52c296990e83c6e8267ee2f0e12c55bb05 /libavfilter/buffersink.c
parent70db0c91563f7a1fb5f17bf481d1207d99478573 (diff)
downloadffmpeg-62f56fd7eae03b70e106a66bc8e2dac178d8738d.tar.gz
buffersink/uninit: use av_frame_free() not unref
Fixes memleak Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/buffersink.c')
-rw-r--r--libavfilter/buffersink.c2
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;