caps = gst_caps_from_string ("text/x-raw, format=utf8");
fail_unless (caps != NULL);
gst_pad_push_event (myencsrcpad, gst_event_new_caps (caps));
+ gst_caps_unref (caps);
gst_element_set_bus (kateenc, bus);
/* pushing gives away my reference ... */
caps = gst_caps_from_string ("text/x-raw, format=utf8");
fail_unless (caps != NULL);
gst_pad_push_event (myencsrcpad, gst_event_new_caps (caps));
+ gst_caps_unref (caps);
gst_buffer_ref (inbuffer);
gst_element_set_bus (kateenc, bus);
gst_element_set_bus (kateenc, NULL);
gst_object_unref (GST_OBJECT (bus));
cleanup_kateenc (kateenc);
- g_list_free (buffers);
+ gst_check_drop_buffers ();
}
GST_END_TEST;
caps = gst_caps_from_string ("subpicture/x-dvd");
fail_unless (caps != NULL);
gst_pad_push_event (myencsrcpad, gst_event_new_caps (caps));
+ gst_caps_unref (caps);
gst_buffer_ref (inbuffer);
gst_element_set_bus (kateenc, bus);
gst_element_set_bus (kateenc, NULL);
gst_object_unref (GST_OBJECT (bus));
cleanup_kateenc (kateenc);
- g_list_free (buffers);
+ gst_check_drop_buffers ();
}
GST_END_TEST;
gst_element_set_bus (kateenc, NULL);
gst_object_unref (GST_OBJECT (bus));
cleanup_kateenc (kateenc);
- g_list_free (buffers);
+ gst_check_drop_buffers ();
}
}
caps = gst_caps_new_simple ("subtitle/x-kate", NULL, NULL);
gst_pad_push_event (pad, gst_event_new_caps (caps));
+ gst_caps_unref (caps);
/* push headers */
inbuffer = gst_buffer_new_wrapped (g_memdup (kate_header_0x80,
gst_element_set_bus (kateparse, NULL);
gst_object_unref (GST_OBJECT (bus));
cleanup_kateparse (kateparse);
- g_list_free (buffers);
+ g_list_foreach (buffers, (GFunc) gst_buffer_unref, NULL);
+ gst_check_drop_buffers ();
}
GST_END_TEST;
gst_element_set_bus (katetag, NULL);
gst_object_unref (GST_OBJECT (bus));
cleanup_katetag (katetag);
- g_list_free (buffers);
+ gst_check_drop_buffers ();
}
GST_END_TEST;
gst_element_set_bus (katetag, NULL);
gst_object_unref (GST_OBJECT (bus));
cleanup_katetag (katetag);
- g_list_free (buffers);
+ gst_check_drop_buffers ();
}
GST_END_TEST;