Mesa (mesa_7_6_branch): glu/sgi: Fix memory leak in bitmapBuild2DMipmaps.
Vinson Lee
vlee at kemper.freedesktop.org
Fri Dec 4 08:11:19 UTC 2009
Module: Mesa
Branch: mesa_7_6_branch
Commit: 80a3944a4d6a07793872d283633546d482cf61b7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=80a3944a4d6a07793872d283633546d482cf61b7
Author: Vinson Lee <vlee at vmware.com>
Date: Mon Nov 23 01:09:06 2009 -0500
glu/sgi: Fix memory leak in bitmapBuild2DMipmaps.
(cherry picked from commit 5b925b7daa566d799c4f50911a7fcca114131503)
---
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;
}
}
More information about the mesa-commit
mailing list