mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
tests: plug some leaks
This commit is contained in:
parent
6802189d68
commit
678e9704fc
2 changed files with 5 additions and 1 deletions
|
@ -249,6 +249,7 @@ GST_START_TEST (test_filled_read)
|
|||
&buffer) == GST_FLOW_OK);
|
||||
|
||||
fail_unless (gst_buffer_get_size (buffer) == 4 * 1024);
|
||||
gst_buffer_unref (buffer);
|
||||
|
||||
gst_element_set_state (queue2, GST_STATE_NULL);
|
||||
|
||||
|
|
|
@ -1085,6 +1085,7 @@ test_queue_src_caps_notify (gboolean link_queue)
|
|||
{
|
||||
GstElement *queue;
|
||||
GstPad *src, *sink, *another_pad;
|
||||
GstCaps *caps;
|
||||
|
||||
queue = gst_element_factory_make ("queue", NULL);
|
||||
fail_unless (queue != NULL);
|
||||
|
@ -1111,7 +1112,9 @@ test_queue_src_caps_notify (gboolean link_queue)
|
|||
|
||||
g_signal_connect (src, "notify::caps", G_CALLBACK (caps_notify), NULL);
|
||||
|
||||
gst_pad_send_event (sink, gst_event_new_caps (gst_caps_from_string ("caps")));
|
||||
caps = gst_caps_from_string ("caps");
|
||||
gst_pad_send_event (sink, gst_event_new_caps (caps));
|
||||
gst_caps_unref (caps);
|
||||
|
||||
g_usleep (10000);
|
||||
|
||||
|
|
Loading…
Reference in a new issue