glsl: Fix leak of linked uniform names at relink/free of the shader_program.

NOTE: This is a candidate for the 8.0 branch.
(cherry picked from commit aad3a46ff4)
This commit is contained in:
Eric Anholt 2012-01-12 13:16:33 -08:00 committed by Ian Romanick
parent 7861ccbe23
commit 99c0aeb3db

View file

@ -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;