projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b7c6fc
)
fix memleak in slang_operation_insert()
author
Brian
<brian@yutani.localnet.net>
Thu, 19 Apr 2007 21:28:42 +0000
(15:28 -0600)
committer
Brian
<brian@yutani.localnet.net>
Sat, 21 Apr 2007 16:05:05 +0000
(10:05 -0600)
src/mesa/shader/slang/slang_compile_operation.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_compile_operation.c
b/src/mesa/shader/slang/slang_compile_operation.c
index
410d215
..
5d80bc7
100644
(file)
--- a/
src/mesa/shader/slang/slang_compile_operation.c
+++ b/
src/mesa/shader/slang/slang_compile_operation.c
@@
-205,6
+205,8
@@
slang_operation_insert(GLuint *numChildren, slang_operation **children,
*children = NULL;
return NULL;
}
+ if (*children)
+ _mesa_free(*children);
*children = ops;
(*numChildren)++;
return newOp;