diff --git a/gst/gstelementfactory.c b/gst/gstelementfactory.c index 7817bc1332..bb3ef8e455 100644 --- a/gst/gstelementfactory.c +++ b/gst/gstelementfactory.c @@ -133,8 +133,6 @@ gst_element_factory_cleanup (GstElementFactory *factory) padtemplates = factory->padtemplates; while (padtemplates) { - GstPadTemplate *oldtempl = GST_PAD_TEMPLATE (padtemplates->data); - /* We leak the padtemplates, since they're generally not properly * ref'ed by the factories */ /* gst_object_unref (GST_OBJECT (oldtempl)); */ diff --git a/gst/gstpad.c b/gst/gstpad.c index b5c293d2cc..d74dd1be54 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -1311,7 +1311,7 @@ gst_pad_get_ghost_pad_list (GstPad *pad) static GstPadLinkReturn gst_pad_try_set_caps_func (GstRealPad *pad, GstCaps *caps, gboolean notify) { - GstCaps *oldcaps, *allowed = NULL; + GstCaps *allowed = NULL; GstPadTemplate *template; GstElement *parent = GST_PAD_PARENT (pad);