summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2016-06-02 13:53:38 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-06-21 10:57:18 +0300
commit9106bf573a322c2137377869e2f1d2dfedc5ecc0 (patch)
tree8efa2b00647ec851cc3bab114cf821c70633522e /tests
parent0d6359d4a20bb2d3c5ff9556b728461e0ffcb6cc (diff)
templatematch: fix buffer leak in test
Need to call gst_check_drop_buffers() to unref the buffers exchanged during the test. https://bugzilla.gnome.org/show_bug.cgi?id=767159
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/templatematch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/check/elements/templatematch.c b/tests/check/elements/templatematch.c
index 99fc79440..3a78d5454 100644
--- a/tests/check/elements/templatematch.c
+++ b/tests/check/elements/templatematch.c
@@ -144,6 +144,7 @@ GST_START_TEST (test_match_blue_square)
gst_bus_set_flushing (bus, TRUE);
gst_object_unref (bus);
gst_caps_unref (caps);
+ gst_check_drop_buffers ();
gst_pad_set_active (srcpad, FALSE);
gst_pad_set_active (sinkpad, FALSE);
gst_object_unref (srcpad);