Browse Source

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

tags/mesa-7.9-rc1
Eric Anholt 16 years ago
parent
commit
49dfa89873
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/mesa/program/ir_to_mesa.cpp

+ 1
- 1
src/mesa/program/ir_to_mesa.cpp 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();
}


Loading…
Cancel
Save