mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Avoid leaking the allocator register map in allocate_const_registers().
This commit is contained in:
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
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user