projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c1fc2b
)
glu/sgi: Fix memory leak in bitmapBuild2DMipmaps.
author
Vinson Lee
<vlee@vmware.com>
Mon, 23 Nov 2009 06:09:06 +0000
(
01:09
-0500)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 4 Dec 2009 08:11:02 +0000
(
00:11
-0800)
(cherry picked from commit
5b925b7daa566d799c4f50911a7fcca114131503
)
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 223621f49fc8d0cde114318ffbd916b387d35537..c5faebd6a35f963303df26332d3e2acc325fb61a 100644
(file)
--- 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;
}
}