diff options
author | Vinson Lee <vlee@vmware.com> | 2009-11-25 00:39:37 -0500 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2009-11-25 00:39:37 -0500 |
commit | 4c06e88b97db88bb91da4376345d26f8455e8e01 (patch) | |
tree | ef63d44ae1b46b014c8cdc751eb566fce5e235f7 | |
parent | 7054b3a3d76181e720a27ce20dbb20fc66c7d4fe (diff) | |
download | glu-4c06e88b97db88bb91da4376345d26f8455e8e01.tar.gz |
glu/sgi: Fix memory leak in gluBuild1DMipmapLevelsCore.
-rw-r--r-- | src/libutil/mipmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/mipmap.c b/src/libutil/mipmap.c index 796be0a..bf6eaf8 100644 --- a/src/libutil/mipmap.c +++ b/src/libutil/mipmap.c @@ -3608,6 +3608,7 @@ int gluBuild1DMipmapLevelsCore(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(newImage); return GLU_OUT_OF_MEMORY; } } |