diff options
author | Eric Anholt <[email protected]> | 2012-01-12 13:16:33 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-01-18 09:59:12 -0800 |
commit | aad3a46ff453d33cb3df909903d261f67b452d31 (patch) | |
tree | 2edaaa994e688c4de1be3aef23cfb627f4a3fe36 /src/glsl | |
parent | 5a0f395bcf70e524492e766a07cf0b816b42a20d (diff) |
glsl: Fix leak of linked uniform names at relink/free of the shader_program.
NOTE: This is a candidate for the 8.0 branch.
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/link_uniforms.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index 02f57d91174..d51850c216a 100644 --- a/src/glsl/link_uniforms.cpp +++ b/src/glsl/link_uniforms.cpp @@ -287,7 +287,7 @@ private: this->uniforms[id].sampler = ~0; } - this->uniforms[id].name = strdup(name); + this->uniforms[id].name = ralloc_strdup(this->uniforms, name); this->uniforms[id].type = base_type; this->uniforms[id].initialized = 0; this->uniforms[id].num_driver_storage = 0; |