projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b8d75e
)
fix mem leak in _mesa_ShaderSourceARB()
author
Brian
<brian@yutani.localnet.net>
Tue, 27 Feb 2007 00:00:06 +0000
(17:00 -0700)
committer
Brian
<brian@yutani.localnet.net>
Tue, 27 Feb 2007 00:00:06 +0000
(17:00 -0700)
src/mesa/main/shaders.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/shaders.c
b/src/mesa/main/shaders.c
index 73f27ed2d3ea9f71b1255f8f3e3c04df82230c71..5bd4a3f5ff55fe726b9b7e6a26c2820e0ac0e7ad 100644
(file)
--- a/
src/mesa/main/shaders.c
+++ b/
src/mesa/main/shaders.c
@@
-422,6
+422,8
@@
_mesa_ShaderSourceARB(GLhandleARB shaderObj, GLsizei count,
source[offsets[count - 1]] = '\0';
ctx->Driver.ShaderSource(ctx, shaderObj, source);
+
+ _mesa_free(offsets);
}