2005-11-16 Thomas Vander Stichele <thomas at apestaart dot org>
+ * gst/elements/gsttee.c: (gst_tee_init):
+ fix pad tempalte leak in tee
+
+2005-11-16 Thomas Vander Stichele <thomas at apestaart dot org>
+
* gst/glib-compat.c: (g_value_dup_gst_object):
* gst/glib-compat.h:
* gst/gstpad.c: (gst_pad_set_property):
static void
gst_tee_init (GstTee * tee, GstTeeClass * g_class)
{
- tee->sinkpad =
- gst_pad_new_from_template (gst_static_pad_template_get (&sinktemplate),
- "sink");
+ GstPadTemplate *templ = gst_static_pad_template_get (&sinktemplate);
+
+ tee->sinkpad = gst_pad_new_from_template (templ, "sink");
+ gst_object_unref (templ);
gst_pad_set_setcaps_function (tee->sinkpad,
GST_DEBUG_FUNCPTR (gst_pad_proxy_setcaps));
gst_pad_set_getcaps_function (tee->sinkpad,
static void
gst_tee_init (GstTee * tee, GstTeeClass * g_class)
{
- tee->sinkpad =
- gst_pad_new_from_template (gst_static_pad_template_get (&sinktemplate),
- "sink");
+ GstPadTemplate *templ = gst_static_pad_template_get (&sinktemplate);
+
+ tee->sinkpad = gst_pad_new_from_template (templ, "sink");
+ gst_object_unref (templ);
gst_pad_set_setcaps_function (tee->sinkpad,
GST_DEBUG_FUNCPTR (gst_pad_proxy_setcaps));
gst_pad_set_getcaps_function (tee->sinkpad,