From bb0393a0cdcabcb29ab7924cd4b3c4622fc2d787 Mon Sep 17 00:00:00 2001 From: Brian Date: Sat, 24 Mar 2007 16:44:20 -0600 Subject: [PATCH] fix mem leak --- src/mesa/shader/slang/slang_codegen.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index 2210b95..fa57ef8 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -1055,13 +1055,9 @@ _slang_gen_function_call(slang_assemble_ctx *A, slang_function *fun, } /* Replace the function call with the inlined block */ -#if 0 - slang_operation_construct(oper); - slang_operation_copy(oper, inlined); -#else - *oper = *inlined; /* XXX slang_operation_copy() */ -#endif - + slang_operation_destruct(oper); + *oper = *inlined; + /* XXX slang_operation_destruct(inlined) ??? */ #if 0 assert(inlined->locals); -- 2.7.4