avfdeviceprovider: Fix caps leak

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6966>
This commit is contained in:
Weijian Pan 2024-05-30 07:34:22 +00:00 committed by GStreamer Marge Bot
parent 7e3f9df9a5
commit df23724b96

View file

@ -115,6 +115,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
result = g_list_prepend (result, gst_object_ref_sink (gst_device));
gst_structure_free (props);
gst_caps_unref (caps);
}
result = g_list_reverse (result);