mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Fix memory leak in vkd3d_init_device_caps() (Coverity).
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0abbf5ed76
commit
abdaa20376
@ -1277,6 +1277,8 @@ static HRESULT vkd3d_init_device_caps(struct d3d12_device *device,
|
||||
if (vulkan_info->max_feature_level < create_info->minimum_feature_level)
|
||||
{
|
||||
WARN("Feature level %#x is not supported.\n", create_info->minimum_feature_level);
|
||||
vkd3d_free(*user_extension_supported);
|
||||
*user_extension_supported = NULL;
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user