avfdeviceprovider: Fix caps leak

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7577>
This commit is contained in:
Weijian Pan 2024-05-30 07:34:22 +00:00 committed by Backport Bot
parent 9edd02d4e1
commit 451bdb901e

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);