diff options
author | Brian Paul <[email protected]> | 2012-09-03 08:12:04 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-09-03 18:07:41 -0600 |
commit | 2ffc7fd2d2cbb1e895ceb8afd12e7c4a2dc3050f (patch) | |
tree | 6659861b546419a1d206e6d30c1d2e7f9f0ca5cb /src/mesa/main/texcompress_fxt1.c | |
parent | 2276bb991ac091b2b42274c2a094ba6f1de08468 (diff) |
mesa: remove more null pointer checks before free() calls
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main/texcompress_fxt1.c')
-rw-r--r-- | src/mesa/main/texcompress_fxt1.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/main/texcompress_fxt1.c b/src/mesa/main/texcompress_fxt1.c index eafa187940e..8948bd278ee 100644 --- a/src/mesa/main/texcompress_fxt1.c +++ b/src/mesa/main/texcompress_fxt1.c @@ -99,8 +99,7 @@ _mesa_texstore_rgb_fxt1(TEXSTORE_PARAMS) fxt1_encode(srcWidth, srcHeight, 3, pixels, srcRowStride, dst, dstRowStride); - if (tempImage) - free((void*) tempImage); + free((void*) tempImage); return GL_TRUE; } @@ -149,8 +148,7 @@ _mesa_texstore_rgba_fxt1(TEXSTORE_PARAMS) fxt1_encode(srcWidth, srcHeight, 4, pixels, srcRowStride, dst, dstRowStride); - if (tempImage) - free((void*) tempImage); + free((void*) tempImage); return GL_TRUE; } |