diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-11-18 00:29:19 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-11-18 00:29:19 +0000 |
commit | b84621e0d02ad2c444bc5b312beb8e8648ef56dd (patch) | |
tree | 774335d4a39cc514bcddb508beaede3c906436e0 | |
parent | 710de383793fdbc1adac70c3488e99e47532f6a9 (diff) |
elementfactory: fix caps leak in element factory list utility functions
-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); |