mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 23:10:11 +01:00
glu/sgi: Fix memory leak in gluBuild3DMipmapLevelsCore.
This commit is contained in:
parent
f1ce37f74a
commit
f895abbd97
1 changed files with 1 additions and 0 deletions
|
|
@ -8098,6 +8098,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;
|
||||
}
|
||||
/* level userLevel+1 is in srcImage; level userLevel already saved */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue