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:
Eric Anholt 2010-08-18 17:42:34 -07:00
parent f1d5a94197
commit f5703a54e2
1 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,10 @@ void
_mesa_free_uniform_list(struct gl_uniform_list *list)
{
GLuint i;
if (!list)
return;
for (i = 0; i < list->NumUniforms; i++) {
free((void *) list->Uniforms[i].Name);
}