summaryrefslogtreecommitdiffstats
path: root/src/glu
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-11-25 00:28:56 -0500
committerVinson Lee <vlee@vmware.com>2009-12-04 00:13:25 -0800
commitea487c6d0b261bf90e898f51bc9f872de8166ddb (patch)
tree4f803787d6b1712df6a581766fe9bb87c938684f /src/glu
parent7b5eba453e08dfad151d09ba4d308cbdf4fc83af (diff)
downloadexternal_mesa3d-ea487c6d0b261bf90e898f51bc9f872de8166ddb.zip
external_mesa3d-ea487c6d0b261bf90e898f51bc9f872de8166ddb.tar.gz
external_mesa3d-ea487c6d0b261bf90e898f51bc9f872de8166ddb.tar.bz2
glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.
(cherry picked from commit 0d89f3dc7ff3f89ba8d5d664253730485bca35e2)
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 22d7022..796be0a 100644
--- a/src/glu/sgi/libutil/mipmap.c
+++ b/src/glu/sgi/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;
}
}