summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-03-24 16:44:20 -0600
committerBrian <[email protected]>2007-03-24 16:44:20 -0600
commitbb0393a0cdcabcb29ab7924cd4b3c4622fc2d787 (patch)
treecc1acdec0c3bffac79fb648eba931c3b15ca97ae /src/mesa/shader/slang
parent9fe342d1e6d3fbd150a1369380a1a4ecf82d6773 (diff)
fix mem leak
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r--src/mesa/shader/slang/slang_codegen.c10
1 files changed, 3 insertions, 7 deletions
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);