glu/sgi: Fix memory leak in gluBuild3DMipmapLevelsCore.

(cherry picked from commit 326b66d724)
This commit is contained in:
Vinson Lee 2009-11-24 01:23:12 -05:00
parent 80a3944a4d
commit 7ed749c062

View file

@ -8232,6 +8232,7 @@ static int gluBuild3DMipmapLevelsCore(GLenum target, GLint internalFormat,
glPixelStorei(GL_UNPACK_SWAP_BYTES, psm.unpack_swap_bytes);
glPixelStorei(GL_UNPACK_SKIP_IMAGES, psm.unpack_skip_images);
glPixelStorei(GL_UNPACK_IMAGE_HEIGHT, psm.unpack_image_height);
free(srcImage);
return GLU_OUT_OF_MEMORY;
}
}