From: Brian Date: Sat, 24 Mar 2007 22:44:20 +0000 (-0600) Subject: fix mem leak X-Git-Tag: android-x86-1.6~2267^2~2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=bb0393a0cdcabcb29ab7924cd4b3c4622fc2d787;p=android-x86%2Fexternal-mesa.git fix mem leak --- diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index 2210b95ef2a..fa57ef86664 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);