From df23724b96745aaee8e2b9eba9f32462b99aee03 Mon Sep 17 00:00:00 2001 From: Weijian Pan Date: Thu, 30 May 2024 07:34:22 +0000 Subject: [PATCH] avfdeviceprovider: Fix caps leak Part-of: --- subprojects/gst-plugins-bad/sys/applemedia/avfdeviceprovider.m | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-bad/sys/applemedia/avfdeviceprovider.m b/subprojects/gst-plugins-bad/sys/applemedia/avfdeviceprovider.m index 8b27e860c8..3f2d893a67 100644 --- a/subprojects/gst-plugins-bad/sys/applemedia/avfdeviceprovider.m +++ b/subprojects/gst-plugins-bad/sys/applemedia/avfdeviceprovider.m @@ -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);