elementfactory: fix caps leak in element factory list utility functions

This commit is contained in:
Tim-Philipp Müller 2010-11-18 00:29:19 +00:00
parent 710de38379
commit b84621e0d0

View file

@ -906,6 +906,7 @@ gst_element_factory_list_filter (GList * list,
(!subsetonly && gst_caps_can_intersect (caps, tmpl_caps))) {
/* non empty intersection, we can use this element */
result = g_list_prepend (result, gst_object_ref (factory));
gst_caps_unref (tmpl_caps);
break;
}
gst_caps_unref (tmpl_caps);