glsl: fix mem leak

This commit is contained in:
Brian Paul 2009-10-01 14:50:45 -06:00
parent b3e41e0d5e
commit 9b27a0d063
1 changed files with 1 additions and 0 deletions

View File

@ -670,6 +670,7 @@ get_main_shader(GLcontext *ctx,
!shader->Main ||
shader->UnresolvedRefs) {
link_error(shProg, "Unresolved symbols");
_mesa_free_shader(ctx, shader);
return NULL;
}
}