mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
tests: aggregator: fix caps leak in unit test
This commit is contained in:
parent
0afc114629
commit
c26a802f5a
1 changed files with 6 additions and 2 deletions
|
@ -575,11 +575,15 @@ GST_START_TEST (test_aggregate_handle_queries)
|
||||||
ChainData data1 = { 0, };
|
ChainData data1 = { 0, };
|
||||||
ChainData data2 = { 0, };
|
ChainData data2 = { 0, };
|
||||||
TestData test = { 0, };
|
TestData test = { 0, };
|
||||||
|
GstCaps *caps;
|
||||||
|
|
||||||
_test_data_init (&test, FALSE);
|
_test_data_init (&test, FALSE);
|
||||||
|
|
||||||
|
caps = gst_caps_new_empty_simple ("foo/x-bar");
|
||||||
_chain_data_init (&data1, test.aggregator,
|
_chain_data_init (&data1, test.aggregator,
|
||||||
gst_query_new_allocation (gst_caps_new_empty_simple ("foo/x-bar"), FALSE),
|
gst_query_new_allocation (caps, FALSE), gst_buffer_new (), NULL);
|
||||||
gst_buffer_new (), NULL);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
_chain_data_init (&data2, test.aggregator, gst_buffer_new (), NULL);
|
_chain_data_init (&data2, test.aggregator, gst_buffer_new (), NULL);
|
||||||
|
|
||||||
thread1 = g_thread_try_new ("gst-check", push_data, &data1, NULL);
|
thread1 = g_thread_try_new ("gst-check", push_data, &data1, NULL);
|
||||||
|
|
Loading…
Reference in a new issue