summaryrefslogtreecommitdiff
path: root/src/glu
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
commit7ed749c062c2bc2b048a34f8e4c6b0a5198e32bb (patch)
treebc14a3b186fa7f8edaf4eec7fa14a35623e474ca /src/glu
parent80a3944a4d6a07793872d283633546d482cf61b7 (diff)
glu/sgi: Fix memory leak in gluBuild3DMipmapLevelsCore.
(cherry picked from commit 326b66d724754ca97012501db1c7c62d7d41a457)
Diffstat (limited to 'src/glu')
-rw-r--r--src/glu/sgi/libutil/mipmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glu/sgi/libutil/mipmap.c b/src/glu/sgi/libutil/mipmap.c
index c5faebd6a3..a5d07a59cf 100644
--- a/src/glu/sgi/libutil/mipmap.c
+++ b/src/glu/sgi/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;
}
}