vorbistag: fix buffer leaks in tests
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 10 May 2016 10:17:34 +0000 (12:17 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 14 May 2016 07:47:33 +0000 (10:47 +0300)
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/vorbistag.c

index 74a7075..0ffa102 100644 (file)
@@ -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);