mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/spirv: Free the output on failure in spirv_compiler_generate_spirv().
This commit is contained in:
Notes:
Henri Verbeet
2025-10-16 15:22:39 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1796
@@ -11052,7 +11052,11 @@ static int spirv_compiler_generate_spirv(struct spirv_compiler *compiler,
|
||||
}
|
||||
|
||||
if (compiler->failed)
|
||||
{
|
||||
vkd3d_shader_free_shader_code(spirv);
|
||||
|
||||
return VKD3D_ERROR_INVALID_SHADER;
|
||||
}
|
||||
|
||||
if (compile_info->target_type == VKD3D_SHADER_TARGET_SPIRV_TEXT)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user