summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-11-24 01:23:12 -0500
committerVinson Lee <vlee@vmware.com>2009-12-04 00:11:58 -0800
commite0bcbe6d5cfbec3b8f16e430429f6dc53dfed9e5 (patch)
tree5e27a43a0ef766288381167dfc1660ee981b12e2
parentc33f022d25c79164ebd684c25c6aedd65d0bb9ee (diff)
downloadglu-e0bcbe6d5cfbec3b8f16e430429f6dc53dfed9e5.tar.gz
glu/sgi: Fix memory leak in gluBuild3DMipmapLevelsCore.
(cherry picked from commit 326b66d724754ca97012501db1c7c62d7d41a457)
-rw-r--r--src/libutil/mipmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/mipmap.c b/src/libutil/mipmap.c
index c5faebd..a5d07a5 100644
--- a/src/libutil/mipmap.c
+++ b/src/libutil/mipmap.c
@@ -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;
}
}