Module: vkd3d Branch: master Commit: ea686e8f5a1e77464e24be32056d28c746ffb1dc URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/ea686e8f5a1e77464e24be32056d28... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Wed Mar 13 23:22:55 2024 +0100 vkd3d-shader/fx: Fix an instruction block leak. Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> --- libs/vkd3d-shader/fx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/fx.c b/libs/vkd3d-shader/fx.c index 426826e3..f68d38fa 100644 --- a/libs/vkd3d-shader/fx.c +++ b/libs/vkd3d-shader/fx.c @@ -840,7 +840,7 @@ static void write_buffers(struct fx_write_context *fx) hlsl_block_init(&block); hlsl_prepend_global_uniform_copy(fx->ctx, &block); - hlsl_block_init(&block); + hlsl_block_cleanup(&block); hlsl_calculate_buffer_offsets(fx->ctx); LIST_FOR_EACH_ENTRY(buffer, &fx->ctx->buffers, struct hlsl_buffer, entry)