summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-11-17 08:29:36 -0800
committerVinson Lee <vlee@vmware.com>2009-12-03 16:15:22 -0800
commit84de1672d3efbfc3b2ae51633b0e503f15e5d62d (patch)
treea51b6487fd245979f2db31143ddf5d3338adc01c
parent4ca8e1680ed2e8437653c6f16f39438e51ce24ae (diff)
progs/util: Fix memory if LoadRGBMipmaps2 fails.
(cherry picked from commit 28b8e4bcd76cc072b062e4c8575327c05ecb9a55)
-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;
}