summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texcompress_cpal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/texcompress_cpal.c')
-rw-r--r--src/mesa/main/texcompress_cpal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/texcompress_cpal.c b/src/mesa/main/texcompress_cpal.c
index 48665212d98..ceeec940376 100644
--- a/src/mesa/main/texcompress_cpal.c
+++ b/src/mesa/main/texcompress_cpal.c
@@ -214,8 +214,7 @@ _mesa_cpal_compressed_teximage2d(GLenum target, GLint level,
_mesa_TexImage2D(target, lvl, info->format, w, h, 0,
info->format, info->type, image);
- if (image)
- free(image);
+ free(image);
/* advance index pointer to point to next src mipmap */
if (info->palette_size == 16)