tests/shader_runner: Free extensions pointer on vulkan runner (valgrind).

This commit is contained in:
Francisco Casas 2024-01-24 19:01:36 -03:00 committed by Alexandre Julliard
parent 48e61fa323
commit 8379e5337c
Notes: Alexandre Julliard 2024-01-25 23:08:40 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/600

View File

@ -1252,10 +1252,12 @@ static bool check_device_extensions(struct vulkan_shader_runner *runner)
if (!has_extension(extensions, count, required_device_extensions[i]))
{
skip("The selected Vulkan device does not support %s.\n", required_device_extensions[i]);
free(extensions);
return false;
}
}
free(extensions);
return true;
}