Module: wine Branch: master Commit: f2d2755eefccd98851a5e2a0f2e1f10ca7d9cfc5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f2d2755eefccd98851a5e2a0f2...
Author: Matteo Bruni mbruni@codeweavers.com Date: Wed Sep 26 19:22:33 2012 +0200
d3dcompiler: Also free the list itself in free_instr_list().
---
dlls/d3dcompiler_43/utils.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dcompiler_43/utils.c b/dlls/d3dcompiler_43/utils.c index d50a9be..7fbf3b5 100644 --- a/dlls/d3dcompiler_43/utils.c +++ b/dlls/d3dcompiler_43/utils.c @@ -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); }