summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-11-25 00:28:56 -0500
committerVinson Lee <vlee@vmware.com>2009-11-25 00:28:56 -0500
commit7054b3a3d76181e720a27ce20dbb20fc66c7d4fe (patch)
tree418ffb0a4bab02b3afd6c9b2e433dab960453495
parentc00efa5394a6c240a3f722b13e3b6998510b9e03 (diff)
downloadglu-7054b3a3d76181e720a27ce20dbb20fc66c7d4fe.tar.gz
glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.
-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 22d7022..796be0a 100644
--- a/src/libutil/mipmap.c
+++ b/src/libutil/mipmap.c
@@ -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;
}
}