fix buffer leaks in tests
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 19 May 2016 08:19:57 +0000 (11:19 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 21 Jun 2016 07:52:47 +0000 (10:52 +0300)
gst_check_drop_buffers() release the buffers exchanged during the test.

https://bugzilla.gnome.org/show_bug.cgi?id=766663

tests/check/elements/autoconvert.c

index 95ca2d7..c1c040f 100644 (file)
@@ -140,6 +140,7 @@ GST_START_TEST (test_autoconvert_simple)
   gst_bus_set_flushing (bus, TRUE);
   gst_object_unref (bus);
 
+  gst_check_drop_buffers ();
   gst_pad_set_active (test_src_pad, FALSE);
   gst_pad_set_active (test_sink_pad, FALSE);
   gst_check_teardown_src_pad (autoconvert);