glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.

This commit is contained in:
Vinson Lee 2009-11-25 00:28:56 -05:00
parent f895abbd97
commit 0d89f3dc7f

View file

@ -4349,6 +4349,7 @@ static int gluBuild2DMipmapLevelsCore(GLenum target, GLint internalFormat,
glPixelStorei(GL_UNPACK_SKIP_PIXELS, psm.unpack_skip_pixels);
glPixelStorei(GL_UNPACK_ROW_LENGTH, psm.unpack_row_length);
glPixelStorei(GL_UNPACK_SWAP_BYTES, psm.unpack_swap_bytes);
free(srcImage);
return GLU_OUT_OF_MEMORY;
}
}