mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/hlsl: Fix a memory leak.
Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
58c80574d8
commit
1502740d5b
@ -1014,6 +1014,7 @@ static void allocate_temp_registers(struct hlsl_ctx *ctx, struct hlsl_ir_functio
|
|||||||
struct liveness liveness = {0};
|
struct liveness liveness = {0};
|
||||||
allocate_temp_registers_recurse(ctx, entry_func->body, &liveness);
|
allocate_temp_registers_recurse(ctx, entry_func->body, &liveness);
|
||||||
ctx->temp_count = liveness.reg_count;
|
ctx->temp_count = liveness.reg_count;
|
||||||
|
vkd3d_free(liveness.regs);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void allocate_semantic_register(struct hlsl_ctx *ctx, struct hlsl_ir_var *var, unsigned int *counter, bool output)
|
static void allocate_semantic_register(struct hlsl_ctx *ctx, struct hlsl_ir_var *var, unsigned int *counter, bool output)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user