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

This commit is contained in:
Matteo Bruni 2012-09-26 19:22:33 +02:00 committed by Alexandre Julliard
parent 97a170d2d1
commit f2d2755eef
1 changed files with 2 additions and 1 deletions

View File

@ -2222,6 +2222,7 @@ void free_instr_list(struct list *list)
return;
LIST_FOR_EACH_ENTRY_SAFE(node, next_node, list, struct hlsl_ir_node, entry)
free_instr(node);
d3dcompiler_free(list);
}
static void free_ir_constant(struct hlsl_ir_constant *constant)
@ -2360,5 +2361,5 @@ void free_function(struct hlsl_ir_function_decl *func)
d3dcompiler_free(param);
d3dcompiler_free(func->parameters);
free_instr_list(func->body);
d3dcompiler_free(func->body);
d3dcompiler_free(func);
}