mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
vkd3d-shader/hlsl: Free array sizes on function parameters (Valgrind).
This commit is contained in:
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
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user