Index: core/src/fxcodec/codec/fx_codec_gif.cpp |
diff --git a/core/src/fxcodec/codec/fx_codec_gif.cpp b/core/src/fxcodec/codec/fx_codec_gif.cpp |
index 4c60a0392cd26fdc0bbd879e017452946a2e41be..af0c32ea9dfdfff0dc90c1e0886d3f478fdc5154 100644 |
--- a/core/src/fxcodec/codec/fx_codec_gif.cpp |
+++ b/core/src/fxcodec/codec/fx_codec_gif.cpp |
@@ -21,9 +21,7 @@ static void* _gif_alloc_func(unsigned int size) { |
return FX_Alloc(char, size); |
} |
static void _gif_free_func(void* p) { |
- if (p != NULL) { |
- FX_Free(p); |
- } |
+ FX_Free(p); |
} |
}; |
static void _gif_error_data(gif_decompress_struct_p gif_ptr, |
@@ -98,7 +96,7 @@ void* CCodec_GifModule::Start(void* pModule) { |
} |
void CCodec_GifModule::Finish(void* pContext) { |
FXGIF_Context* p = (FXGIF_Context*)pContext; |
- if (p != NULL) { |
+ if (p) { |
_gif_destroy_decompress(&p->gif_ptr); |
p->m_FreeFunc(p); |
} |