diff --git a/subprojects/gst-plugins-bad/sys/directshow/dshowdeviceprovider.cpp b/subprojects/gst-plugins-bad/sys/directshow/dshowdeviceprovider.cpp index 2f49e4a403..670a3831d3 100644 --- a/subprojects/gst-plugins-bad/sys/directshow/dshowdeviceprovider.cpp +++ b/subprojects/gst-plugins-bad/sys/directshow/dshowdeviceprovider.cpp @@ -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; }