projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
081bf95
)
progs/util: Fix memory if LoadRGBMipmaps2 fails.
author
Vinson Lee
<vlee@vmware.com>
Tue, 17 Nov 2009 16:29:36 +0000
(08:29 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 17 Nov 2009 16:29:36 +0000
(08:29 -0800)
progs/util/readtex.c
patch
|
blob
|
history
diff --git
a/progs/util/readtex.c
b/progs/util/readtex.c
index 134eb79100abc0cb42da8dd703a2e80bedf6aa9b..4e22bed81af4313ad1ab3221acbff7ef2ccf4874 100644
(file)
--- a/
progs/util/readtex.c
+++ b/
progs/util/readtex.c
@@
-305,6
+305,7
@@
GLboolean LoadRGBMipmaps2( const char *imageFile, GLenum target,
fprintf(stderr,
"Error in LoadRGBMipmaps %d-component images not implemented\n",
image->components );
+ FreeImage(image);
return GL_FALSE;
}