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:
Józef Kucia 2019-04-08 11:05:35 +02:00 committed by Alexandre Julliard
parent 0abbf5ed76
commit abdaa20376

View File

@ -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;
}