diff options
author | Stian Selnes <stian@pexip.com> | 2015-12-03 11:07:05 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-02-19 11:07:52 +0000 |
commit | fb4c2909ca7844b8def2a5cf4c58a9c099676da6 (patch) | |
tree | 34ae138dd0f466e837ddf620ffdb15da0eef7c91 /tests/check | |
parent | 27816bb200619f8c0605d2aa6151b430bb8d5303 (diff) |
tests: rtpjitterbuffer: fix leaks in unit test
https://bugzilla.gnome.org/show_bug.cgi?id=762214
Diffstat (limited to 'tests/check')
-rw-r--r-- | tests/check/elements/rtpjitterbuffer.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/check/elements/rtpjitterbuffer.c b/tests/check/elements/rtpjitterbuffer.c index 86ebd363a..8e30ea612 100644 --- a/tests/check/elements/rtpjitterbuffer.c +++ b/tests/check/elements/rtpjitterbuffer.c @@ -1609,6 +1609,8 @@ GST_START_TEST (test_deadline_ts_offset) jb_latency_ms * GST_MSECOND); test_id = gst_test_clock_process_next_clock_id (GST_TEST_CLOCK (data.clock)); g_assert (test_id == id); + gst_clock_id_unref (id); + gst_clock_id_unref (test_id); /* wait_next_timeout() syncs on the new deadline timer */ gst_test_clock_wait_for_next_pending_id (GST_TEST_CLOCK (data.clock), &id); @@ -1620,11 +1622,12 @@ GST_START_TEST (test_deadline_ts_offset) (20 + jb_latency_ms) * GST_MSECOND); test_id = gst_test_clock_process_next_clock_id (GST_TEST_CLOCK (data.clock)); g_assert (test_id == id); - - gst_clock_id_unref (test_id); gst_clock_id_unref (id); + gst_clock_id_unref (test_id); + out_buf = g_async_queue_pop (data.buf_queue); g_assert (out_buf != NULL); + gst_buffer_unref (out_buf); destroy_testharness (&data); } |