vkd3d-shader/hlsl: Free the constant defs array in hlsl_ctx_cleanup().

Spotted by Francisco Casas.
This commit is contained in:
Zebediah Figura 2023-07-11 17:36:59 -05:00 committed by Alexandre Julliard
parent 63631a8fd4
commit 44bf5556ae
Notes: Alexandre Julliard 2023-07-17 23:25:52 +02: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/276

View File

@ -3380,6 +3380,8 @@ static void hlsl_ctx_cleanup(struct hlsl_ctx *ctx)
vkd3d_free((void *)buffer->name);
vkd3d_free(buffer);
}
vkd3d_free(ctx->constant_defs.regs);
}
int hlsl_compile_shader(const struct vkd3d_shader_code *hlsl, const struct vkd3d_shader_compile_info *compile_info,