Mesa (master): ir_to_mesa: Fix leak by improper freeing of a uniform list.

Eric Anholt anholt at kemper.freedesktop.org
Thu Aug 19 00:12:40 UTC 2010


Module: Mesa
Branch: master
Commit: 49dfa89873403967d9f99d08d2e25042dea544e0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=49dfa89873403967d9f99d08d2e25042dea544e0

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Aug 18 17:12:18 2010 -0700

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

---

 src/mesa/program/ir_to_mesa.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index b566706..7b0c28e 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -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();
    }
 




More information about the mesa-commit mailing list