mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 17:10:26 +01:00
fix mem leak in _mesa_ShaderSourceARB()
This commit is contained in:
parent
4b8d75e2e6
commit
b58ea057fe
1 changed files with 2 additions and 0 deletions
|
|
@ -422,6 +422,8 @@ _mesa_ShaderSourceARB(GLhandleARB shaderObj, GLsizei count,
|
|||
source[offsets[count - 1]] = '\0';
|
||||
|
||||
ctx->Driver.ShaderSource(ctx, shaderObj, source);
|
||||
|
||||
_mesa_free(offsets);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue