mesa: Don't try to free components of a NULL uniform list.
This might happen if we manage to trigger the right linker errors.
This commit is contained in:
parent
f1d5a94197
commit
f5703a54e2
|
@ -44,6 +44,10 @@ void
|
||||||
_mesa_free_uniform_list(struct gl_uniform_list *list)
|
_mesa_free_uniform_list(struct gl_uniform_list *list)
|
||||||
{
|
{
|
||||||
GLuint i;
|
GLuint i;
|
||||||
|
|
||||||
|
if (!list)
|
||||||
|
return;
|
||||||
|
|
||||||
for (i = 0; i < list->NumUniforms; i++) {
|
for (i = 0; i < list->NumUniforms; i++) {
|
||||||
free((void *) list->Uniforms[i].Name);
|
free((void *) list->Uniforms[i].Name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue