From b58ea057feb7a00329fe92fe41e1d408e7c76065 Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 26 Feb 2007 17:00:06 -0700 Subject: fix mem leak in _mesa_ShaderSourceARB() --- src/mesa/main/shaders.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/main') 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); } -- cgit v1.2.3