summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2016-05-19 12:51:17 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-06-21 10:52:47 +0300
commitbebe4ca7ab5637710d2aa973df389c121fb84614 (patch)
treee36f1367100566d077040350f6e3e0e7ef521dae /tests
parent9694e7e820ca880f5c291ad7ca67bbb0b66e05c0 (diff)
uvch264demux: fix buffer leaks in test
The mock chain functions aren't unreffing the buffers so the caller should do it. https://bugzilla.gnome.org/show_bug.cgi?id=766663
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/uvch264demux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/check/elements/uvch264demux.c b/tests/check/elements/uvch264demux.c
index fb8b17f83..cf5c26adb 100644
--- a/tests/check/elements/uvch264demux.c
+++ b/tests/check/elements/uvch264demux.c
@@ -373,6 +373,7 @@ GST_START_TEST (test_no_data)
fail_unless (buffer_h264 == NULL && buffer_jpg != NULL);
fail_unless (buffer_nv12 == NULL && buffer_yuy2 == NULL);
fail_unless (gerror == NULL && error_debug == NULL);
+ gst_buffer_unref (buffer_jpg);
_teardown_test ();
}
@@ -644,6 +645,7 @@ GST_START_TEST (test_no_sos_marker)
fail_unless (gerror == NULL);
fail_unless (gst_buffer_get_size (buffer_h264) == sizeof (h264_data));
fail_if (gst_buffer_memcmp (buffer_h264, 0, h264_data, sizeof (h264_data)));
+ gst_buffer_unref (buffer_h264);
_teardown_test ();
}