diff options
author | Lei Zhang <thestig@chromium.org> | 2016-02-22 20:32:21 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-02-22 20:32:21 -0800 |
commit | 5eca305b1586b2107566a5c124baa5f2e00096c0 (patch) | |
tree | d2b6b17b62995b2249a28956a17ae87122f83124 /core/src/fxcodec/codec/fx_codec_gif.cpp | |
parent | d2019df0a77c5d01a336f16be054d2f373e38c54 (diff) | |
download | pdfium-5eca305b1586b2107566a5c124baa5f2e00096c0.tar.xz |
Remove foo != NULL outside of xfa/
Most of these are from the XFA branch.
R=dsinclair@chromium.org
Review URL: https://codereview.chromium.org/1720043003 .
Diffstat (limited to 'core/src/fxcodec/codec/fx_codec_gif.cpp')
-rw-r--r-- | core/src/fxcodec/codec/fx_codec_gif.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/src/fxcodec/codec/fx_codec_gif.cpp b/core/src/fxcodec/codec/fx_codec_gif.cpp index 4c60a0392c..af0c32ea9d 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); } |