Commit f2d2755e authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dcompiler: Also free the list itself in free_instr_list().

parent 97a170d2
...@@ -2222,6 +2222,7 @@ void free_instr_list(struct list *list) ...@@ -2222,6 +2222,7 @@ void free_instr_list(struct list *list)
return; return;
LIST_FOR_EACH_ENTRY_SAFE(node, next_node, list, struct hlsl_ir_node, entry) LIST_FOR_EACH_ENTRY_SAFE(node, next_node, list, struct hlsl_ir_node, entry)
free_instr(node); free_instr(node);
d3dcompiler_free(list);
} }
static void free_ir_constant(struct hlsl_ir_constant *constant) static void free_ir_constant(struct hlsl_ir_constant *constant)
...@@ -2360,5 +2361,5 @@ void free_function(struct hlsl_ir_function_decl *func) ...@@ -2360,5 +2361,5 @@ void free_function(struct hlsl_ir_function_decl *func)
d3dcompiler_free(param); d3dcompiler_free(param);
d3dcompiler_free(func->parameters); d3dcompiler_free(func->parameters);
free_instr_list(func->body); free_instr_list(func->body);
d3dcompiler_free(func->body); d3dcompiler_free(func);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment