summaryrefslogtreecommitdiff
path: root/progs/util
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-11-17 08:29:36 -0800
committerVinson Lee <vlee@vmware.com>2009-11-17 08:29:36 -0800
commit28b8e4bcd76cc072b062e4c8575327c05ecb9a55 (patch)
tree85d561f1532570b1dba1826ca7450d4c29d74b79 /progs/util
parent081bf9563fca3f64aed8676f20d17af3eb115016 (diff)
progs/util: Fix memory if LoadRGBMipmaps2 fails.
Diffstat (limited to 'progs/util')
-rw-r--r--progs/util/readtex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/util/readtex.c b/progs/util/readtex.c
index 134eb79100..4e22bed81a 100644
--- 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;
}