diff options
author | Vinson Lee <vlee@vmware.com> | 2009-11-23 01:09:06 -0500 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2009-12-04 00:11:02 -0800 |
commit | 80a3944a4d6a07793872d283633546d482cf61b7 (patch) | |
tree | 3e606c9c28a101273112f6a72fdf54727e50b4ae /src | |
parent | 6c1fc2b2a5c80697dff304562e79dae25d9f2cb1 (diff) | |
download | external_mesa3d-80a3944a4d6a07793872d283633546d482cf61b7.zip external_mesa3d-80a3944a4d6a07793872d283633546d482cf61b7.tar.gz external_mesa3d-80a3944a4d6a07793872d283633546d482cf61b7.tar.bz2 |
glu/sgi: Fix memory leak in bitmapBuild2DMipmaps.
(cherry picked from commit 5b925b7daa566d799c4f50911a7fcca114131503)
Diffstat (limited to 'src')
-rw-r--r-- | src/glu/sgi/libutil/mipmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glu/sgi/libutil/mipmap.c b/src/glu/sgi/libutil/mipmap.c index 223621f..c5faebd 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; } } |