Mesa (mesa_7_7_branch): glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.
Vinson Lee
vlee at kemper.freedesktop.org
Wed Nov 25 05:31:15 UTC 2009
Module: Mesa
Branch: mesa_7_7_branch
Commit: 0d89f3dc7ff3f89ba8d5d664253730485bca35e2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0d89f3dc7ff3f89ba8d5d664253730485bca35e2
Author: Vinson Lee <vlee at vmware.com>
Date: Wed Nov 25 00:28:56 2009 -0500
glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.
---
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 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;
}
}
More information about the mesa-commit
mailing list