ir_to_mesa: Fix leak by improper freeing of a uniform list.
authorEric Anholt <eric@anholt.net>
Thu, 19 Aug 2010 00:12:18 +0000 (17:12 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 19 Aug 2010 00:12:18 +0000 (17:12 -0700)
src/mesa/program/ir_to_mesa.cpp

index b566706d72a2d3aafd8905dd2c82aa13d64089ec..7b0c28e5be1a286da88f7b7ec0ff69c756eac5bf 100644 (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();
    }