From: Zebediah Figura zfigura@codeweavers.com
Signed-off-by: Zebediah Figura zfigura@codeweavers.com --- dlls/d3dcompiler_43/utils.c | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/dlls/d3dcompiler_43/utils.c b/dlls/d3dcompiler_43/utils.c index 3f5a57ffa40..a1470cd0f5c 100644 --- a/dlls/d3dcompiler_43/utils.c +++ b/dlls/d3dcompiler_43/utils.c @@ -2202,6 +2202,12 @@ static void free_ir_if(struct hlsl_ir_if *if_node) d3dcompiler_free(if_node); }
+static void free_ir_loop(struct hlsl_ir_loop *loop) +{ + free_instr_list(loop->body); + d3dcompiler_free(loop); +} + static void free_ir_jump(struct hlsl_ir_jump *jump) { d3dcompiler_free(jump); @@ -2232,6 +2238,9 @@ void free_instr(struct hlsl_ir_node *node) case HLSL_IR_IF: free_ir_if(if_from_node(node)); break; + case HLSL_IR_LOOP: + free_ir_loop(loop_from_node(node)); + break; case HLSL_IR_JUMP: free_ir_jump(jump_from_node(node)); break;