projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fe342d
)
fix mem leak
author
Brian
<brian@nostromo.localnet.net>
Sat, 24 Mar 2007 22:44:20 +0000
(16:44 -0600)
committer
Brian
<brian@nostromo.localnet.net>
Sat, 24 Mar 2007 22:44:20 +0000
(16:44 -0600)
src/mesa/shader/slang/slang_codegen.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_codegen.c
b/src/mesa/shader/slang/slang_codegen.c
index 2210b95ef2ab231280fda8a988d2c6a79203b89a..fa57ef86664254eb0b86d98ff36185948339a62f 100644
(file)
--- 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);