fix pad tempalte leak in tee

Original commit message from CVS:
fix pad tempalte leak in tee
This commit is contained in:
Thomas Vander Stichele 2005-11-16 12:57:51 +00:00
parent d5497ccd53
commit ed4d1cee0e
3 changed files with 13 additions and 6 deletions

View file

@ -1,3 +1,8 @@
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):

View file

@ -140,9 +140,10 @@ gst_tee_class_init (GstTeeClass * klass)
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,

View file

@ -140,9 +140,10 @@ gst_tee_class_init (GstTeeClass * klass)
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,