On Tue, 14 Jul 2020 at 16:41, Matteo Bruni mbruni@codeweavers.com wrote:
@@ -2994,7 +2992,11 @@ static struct wined3d_adapter *wined3d_adapter_no3d_create(unsigned int ordinal, return NULL; }
- wined3d_driver_info_init(&adapter->driver_info, &gpu_description, WINED3D_FEATURE_LEVEL_NONE, 0, 0);
- if (!wined3d_driver_info_init(&adapter->driver_info, &gpu_description, WINED3D_FEATURE_LEVEL_NONE, 0, 0))
- {
heap_free(adapter);
return NULL;
- }
That should call wined3d_adapter_cleanup(). Of course, so should the existing code if wined3d_adapter_no3d_init_format_info() fails.