vkd3d-shader/hlsl: Free array sizes on function parameters (Valgrind).

This commit is contained in:
Francisco Casas 2024-05-21 17:51:44 -04:00 committed by Henri Verbeet
parent b92baa40ec
commit 7bd53cf6d9
Notes: Henri Verbeet 2024-07-09 21:09:52 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/893

View File

@ -6856,6 +6856,8 @@ parameter:
}
type = hlsl_new_array_type(ctx, type, $4.sizes[i]);
}
vkd3d_free($4.sizes);
$$.type = type;
if (hlsl_version_ge(ctx, 5, 1) && type->class == HLSL_CLASS_ARRAY && hlsl_type_is_resource(type))