From: Guillaume Desmottes Date: Tue, 10 May 2016 10:17:34 +0000 (+0200) Subject: audiorate: fix buffer leaks in tests X-Git-Tag: 1.19.3~511^2~2851 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e17299290a5d6752eebcb3f6733e75e87d45bedf;p=platform%2Fupstream%2Fgstreamer.git audiorate: 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 --- diff --git a/tests/check/elements/audiorate.c b/tests/check/elements/audiorate.c index b5a3e50..7664cb0 100644 --- a/tests/check/elements/audiorate.c +++ b/tests/check/elements/audiorate.c @@ -442,6 +442,7 @@ GST_START_TEST (test_large_discont) gst_element_set_state (audiorate, GST_STATE_NULL); gst_caps_unref (caps); + gst_check_drop_buffers (); gst_check_teardown_sink_pad (audiorate); gst_check_teardown_src_pad (audiorate);