Fix #112745, unreffing padtemplates that aren't properly ref'ed

Original commit message from CVS:
Fix #112745, unreffing padtemplates that aren't properly ref'ed
This commit is contained in:
David Schleef 2003-05-11 05:36:15 +00:00
parent 56125511dc
commit 31d85c9430

View file

@ -135,7 +135,9 @@ gst_element_factory_cleanup (GstElementFactory *factory)
while (padtemplates) {
GstPadTemplate *oldtempl = GST_PAD_TEMPLATE (padtemplates->data);
gst_object_unref (GST_OBJECT (oldtempl));
/* We leak the padtemplates, since they're generally not properly
* ref'ed by the factories */
/* gst_object_unref (GST_OBJECT (oldtempl)); */
padtemplates = g_list_next (padtemplates);
}