projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8df551c
)
glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.
author
Vinson Lee
<vlee@vmware.com>
Thu, 26 Nov 2009 05:35:31 +0000
(
00:35
-0500)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 4 Dec 2009 08:14:31 +0000
(
00:14
-0800)
(cherry picked from commit
808f0376607b0e2d31dfebc888fd8f1e737fed09
)
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 bf6eaf88c6dbfeda5594b737f8df711917abb325..d1fd5a7d724c2d095399af677846e1c47051025f 100644
(file)
--- a/
src/glu/sgi/libutil/mipmap.c
+++ b/
src/glu/sgi/libutil/mipmap.c
@@
-4108,6
+4108,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;
}
/* level userLevel+1 is in srcImage; level userLevel already saved */