diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-12-06 20:58:42 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-12-06 20:58:42 +0000 |
commit | c26a802f5abfa29711d37c922a15e720068cec8a (patch) | |
tree | c36c1b45c9af6b1dbb12099432a7f88ea60ea020 | |
parent | 0afc114629ef93c0107928142ee25c50d8db38ee (diff) |
tests: aggregator: fix caps leak in unit test
-rw-r--r-- | tests/check/libs/aggregator.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/check/libs/aggregator.c b/tests/check/libs/aggregator.c index 06ef40311..8756c78ea 100644 --- a/tests/check/libs/aggregator.c +++ b/tests/check/libs/aggregator.c @@ -575,11 +575,15 @@ GST_START_TEST (test_aggregate_handle_queries) ChainData data1 = { 0, }; ChainData data2 = { 0, }; TestData test = { 0, }; + GstCaps *caps; _test_data_init (&test, FALSE); + + caps = gst_caps_new_empty_simple ("foo/x-bar"); _chain_data_init (&data1, test.aggregator, - gst_query_new_allocation (gst_caps_new_empty_simple ("foo/x-bar"), FALSE), - gst_buffer_new (), NULL); + gst_query_new_allocation (caps, FALSE), gst_buffer_new (), NULL); + gst_caps_unref (caps); + _chain_data_init (&data2, test.aggregator, gst_buffer_new (), NULL); thread1 = g_thread_try_new ("gst-check", push_data, &data1, NULL); |