dshowdeviceprovider: Fix leak in gst_dshow_device_provider_start

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4224>
This commit is contained in:
Adrien De Coninck 2023-03-19 20:57:18 +01:00 committed by GStreamer Marge Bot
parent 5fafe88ccc
commit 0aea6a86ac

View file

@ -130,7 +130,7 @@ gst_dshow_device_provider_start (GstDeviceProvider * provider)
if (dev->data)
gst_device_provider_device_add (provider, (GstDevice *) dev->data);
}
g_list_free (devs);
g_list_free_full (devs, gst_object_unref);
return TRUE;
}