summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaders.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-02-26 17:00:06 -0700
committerBrian <[email protected]>2007-02-26 17:00:06 -0700
commitb58ea057feb7a00329fe92fe41e1d408e7c76065 (patch)
treeafe71af980c7ddb9b020e8d28302c41d07df9c47 /src/mesa/main/shaders.c
parent4b8d75e2e6ba72bbf772a75d7167c537c6e630f7 (diff)
fix mem leak in _mesa_ShaderSourceARB()
Diffstat (limited to 'src/mesa/main/shaders.c')
-rw-r--r--src/mesa/main/shaders.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/shaders.c b/src/mesa/main/shaders.c
index 73f27ed2d3e..5bd4a3f5ff5 100644
--- 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);
}