also need to ref the template in gst_pad_new_from_template

Original commit message from CVS:
also need to ref the template in gst_pad_new_from_template
This commit is contained in:
Steve Baker 2001-09-29 15:39:00 +00:00
parent b1a72c0307
commit b213eab345

View file

@ -287,9 +287,10 @@ gst_pad_new_from_template (GstPadTemplate *templ,
g_return_val_if_fail (templ != NULL, NULL);
pad = gst_pad_new (name, templ->direction);
gst_object_ref (GST_OBJECT (templ));
GST_PAD_PADTEMPLATE(pad) = templ;
return pad;
}