fix mem leak in _mesa_ShaderSourceARB()
authorBrian <brian@yutani.localnet.net>
Tue, 27 Feb 2007 00:00:06 +0000 (17:00 -0700)
committerBrian <brian@yutani.localnet.net>
Tue, 27 Feb 2007 00:00:06 +0000 (17:00 -0700)
src/mesa/main/shaders.c

index 73f27ed2d3ea9f71b1255f8f3e3c04df82230c71..5bd4a3f5ff55fe726b9b7e6a26c2820e0ac0e7ad 100644 (file)
@@ -422,6 +422,8 @@ _mesa_ShaderSourceARB(GLhandleARB shaderObj, GLsizei count,
    source[offsets[count - 1]] = '\0';
 
    ctx->Driver.ShaderSource(ctx, shaderObj, source);
+
+   _mesa_free(offsets);
 }