diff options
author | Vinson Lee <vlee@vmware.com> | 2009-11-25 00:28:56 -0500 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2009-12-04 00:13:25 -0800 |
commit | 40ce9ce617ce0c8b4499c037fe7b1568052cfd54 (patch) | |
tree | 418ffb0a4bab02b3afd6c9b2e433dab960453495 /src | |
parent | 0f4e7158f244a7871f107126a74396508a7a4009 (diff) | |
download | glu-40ce9ce617ce0c8b4499c037fe7b1568052cfd54.tar.gz |
glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.
(cherry picked from commit 0d89f3dc7ff3f89ba8d5d664253730485bca35e2)
Diffstat (limited to 'src')
-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 22d7022..796be0a 100644 --- a/src/libutil/mipmap.c +++ b/src/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; } } |