From c6eb9df930630f37d8e82d4e3ed9e4da9cbef2a6 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 10 May 2016 12:17:34 +0200 Subject: [PATCH] appsrc: fix buffer leaks in tests It internally uses gst_check_chain_func() so we should call gst_check_drop_buffers() when tearing down tests to free the buffers which have been exchanged through the pipeline. https://bugzilla.gnome.org/show_bug.cgi?id=766226 --- tests/check/elements/appsrc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/check/elements/appsrc.c b/tests/check/elements/appsrc.c index f7f1a13..369587c 100644 --- a/tests/check/elements/appsrc.c +++ b/tests/check/elements/appsrc.c @@ -60,6 +60,7 @@ cleanup_appsrc (GstElement * appsrc) { GST_DEBUG ("cleanup_appsrc"); + gst_check_drop_buffers (); gst_check_teardown_sink_pad (appsrc); gst_check_teardown_element (appsrc); } -- 2.7.4