diff options
author | Vinson Lee <[email protected]> | 2009-11-17 08:29:36 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2009-12-03 16:15:22 -0800 |
commit | 84de1672d3efbfc3b2ae51633b0e503f15e5d62d (patch) | |
tree | a51b6487fd245979f2db31143ddf5d3338adc01c /progs | |
parent | 4ca8e1680ed2e8437653c6f16f39438e51ce24ae (diff) |
progs/util: Fix memory if LoadRGBMipmaps2 fails.
(cherry picked from commit 28b8e4bcd76cc072b062e4c8575327c05ecb9a55)
Diffstat (limited to 'progs')
-rw-r--r-- | progs/util/readtex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/util/readtex.c b/progs/util/readtex.c index 134eb79100a..4e22bed81af 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; } |