mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-29 23:32:33 +00:00
elementfactory: fix caps leak in element factory list utility functions
This commit is contained in:
parent
710de38379
commit
b84621e0d0
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue