ksdeviceprovider: Fix leak in gst_dshow_device_provider_start

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4227>
This commit is contained in:
Adrien De Coninck 2023-03-19 21:21:31 +01:00 committed by Tim-Philipp Müller
parent df679c145e
commit 6e37f49f4a

View file

@ -535,7 +535,7 @@ gst_ks_device_provider_start (GstDeviceProvider * provider)
if (dev->data) if (dev->data)
gst_device_provider_device_add (provider, (GstDevice *) dev->data); gst_device_provider_device_add (provider, (GstDevice *) dev->data);
} }
g_list_free (devs); g_list_free_full (devs, gst_object_unref);
inst = (HINSTANCE) GetModuleHandle (NULL); inst = (HINSTANCE) GetModuleHandle (NULL);