projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d89f3d
)
glu/sgi: Fix memory leak in gluBuild1DMipmapLevelsCore.
author
Vinson Lee
<vlee@vmware.com>
Wed, 25 Nov 2009 05:39:37 +0000
(
00:39
-0500)
committer
Vinson Lee
<vlee@vmware.com>
Wed, 25 Nov 2009 05:39:37 +0000
(
00:39
-0500)
src/glu/sgi/libutil/mipmap.c
patch
|
blob
|
history
diff --git
a/src/glu/sgi/libutil/mipmap.c
b/src/glu/sgi/libutil/mipmap.c
index 796be0aad383eac6662757a62719f855dac319f5..bf6eaf88c6dbfeda5594b737f8df711917abb325 100644
(file)
--- a/
src/glu/sgi/libutil/mipmap.c
+++ b/
src/glu/sgi/libutil/mipmap.c
@@
-3608,6
+3608,7
@@
int gluBuild1DMipmapLevelsCore(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;
}
}