ir_to_mesa: Fix leak by improper freeing of a uniform list.

This commit is contained in:
Eric Anholt
2010-08-18 17:12:18 -07:00
parent b83846475b
commit 49dfa89873
+1 -1
View File
@@ -2743,7 +2743,7 @@ _mesa_glsl_link_shader(GLcontext *ctx, struct gl_shader_program *prog)
/* We don't use the linker's uniforms list, and cook up our own at
* generate time.
*/
free(prog->Uniforms);
_mesa_free_uniform_list(prog->Uniforms);
prog->Uniforms = _mesa_new_uniform_list();
}