summaryrefslogtreecommitdiffstats
path: root/src/glu/sgi/libutil/mipmap.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-11-23 01:09:06 -0500
committerVinson Lee <[email protected]>2009-11-23 01:09:06 -0500
commit5b925b7daa566d799c4f50911a7fcca114131503 (patch)
tree7336f7ac895ca00ecf5836e60c6ab2632d3b2b54 /src/glu/sgi/libutil/mipmap.c
parentb611f639b4bffdcca376293f7ce71af9f6bdbff3 (diff)
glu/sgi: Fix memory leak in bitmapBuild2DMipmaps.
Diffstat (limited to 'src/glu/sgi/libutil/mipmap.c')
-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 223621f49fc..c5faebd6a35 100644
--- a/src/glu/sgi/libutil/mipmap.c
+++ b/src/glu/sgi/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;
}
}