From: Guillaume Desmottes Date: Tue, 10 May 2016 10:17:34 +0000 (+0200) Subject: vorbistag: fix buffer leaks in tests X-Git-Tag: 1.19.3~511^2~2849 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b2f9f2c3fc701f50908fffdd2f4741c6119167a;p=platform%2Fupstream%2Fgstreamer.git vorbistag: 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/vorbistag.c b/tests/check/elements/vorbistag.c index 74a7075..0ffa102 100644 --- a/tests/check/elements/vorbistag.c +++ b/tests/check/elements/vorbistag.c @@ -118,6 +118,7 @@ cleanup_vorbistag (GstElement * vorbistag) gst_pad_set_active (mysrcpad, FALSE); gst_pad_set_active (mysinkpad, FALSE); + gst_check_drop_buffers (); gst_check_teardown_src_pad (vorbistag); gst_check_teardown_sink_pad (vorbistag); gst_check_teardown_element (vorbistag);