summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-11-23 01:09:06 -0500
committerVinson Lee <vlee@vmware.com>2009-11-23 01:09:06 -0500
commitc9765ce98d9421db8f70d7b5cbec96f68ae8cab8 (patch)
treea9426075d4312d30578f759a8c655d1e2d3859bb /src
parentfa256b4ef3e38662173a17a3e08f44f3c3740bca (diff)
downloadglu-c9765ce98d9421db8f70d7b5cbec96f68ae8cab8.tar.gz
glu/sgi: Fix memory leak in bitmapBuild2DMipmaps.
Diffstat (limited to 'src')
-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 223621f..c5faebd 100644
--- a/src/libutil/mipmap.c
+++ b/src/libutil/mipmap.c
@@ -3762,6 +3762,7 @@ static int bitmapBuild2DMipmaps(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;
}
}