diff options
author | Vinson Lee <vlee@vmware.com> | 2009-11-26 00:35:31 -0500 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2009-12-04 00:14:31 -0800 |
commit | a391cf73c2664665ff2855b78affce5c7457054a (patch) | |
tree | 8c3dcd0e4b0f713837a2a678b5bca6b8ef03cdf1 | |
parent | 021bf425fe8cc7e18d3ea2d50c289cb839f4aed4 (diff) | |
download | glu-a391cf73c2664665ff2855b78affce5c7457054a.tar.gz |
glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.
(cherry picked from commit 808f0376607b0e2d31dfebc888fd8f1e737fed09)
-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 bf6eaf8..d1fd5a7 100644 --- a/src/libutil/mipmap.c +++ b/src/libutil/mipmap.c @@ -4108,6 +4108,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; } /* level userLevel+1 is in srcImage; level userLevel already saved */ |