diff options
-rw-r--r-- | gst/gstelementfactory.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/gstelementfactory.c b/gst/gstelementfactory.c index 903e81208a..de9fb6bc6a 100644 --- a/gst/gstelementfactory.c +++ b/gst/gstelementfactory.c @@ -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); |