vkd3d-shader/hlsl: Avoid leaking the allocator register map in allocate_const_registers().

This commit is contained in:
Zebediah Figura 2023-04-05 15:16:00 -05:00 committed by Alexandre Julliard
parent c57ac0b207
commit 71d8ff85c6
Notes: Alexandre Julliard 2023-05-03 22:38:49 +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/168

View File

@ -3074,6 +3074,8 @@ static void allocate_const_registers(struct hlsl_ctx *ctx, struct hlsl_ir_functi
debug_register('c', var->regs[HLSL_REGSET_NUMERIC], var->data_type));
}
}
vkd3d_free(allocator.regs);
}
/* Simple greedy temporary register allocation pass that just assigns a unique