diff options
author | Lei Zhang <thestig@chromium.org> | 2015-06-19 14:51:10 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-06-19 14:51:10 -0700 |
commit | cfac954abcab7caf47d3fa3d641c553cba998271 (patch) | |
tree | 4cd546a2377e973fec54b75c1002c8c0ff321e8f /core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp | |
parent | df558514bf5cb5750d5a7000a843f45f4170d5a4 (diff) | |
download | pdfium-cfac954abcab7caf47d3fa3d641c553cba998271.tar.xz |
Cleanup: Do not check pointers before deleting them.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1192743004.
Diffstat (limited to 'core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp')
-rw-r--r-- | core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp b/core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp index e9bb9c62e0..0e5b92ff5a 100644 --- a/core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp +++ b/core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp @@ -41,9 +41,7 @@ CJBig2_SymbolDict::~CJBig2_SymbolDict() { if(SDEXSYMS) { for(FX_DWORD i = 0; i < SDNUMEXSYMS; i++) { - if(SDEXSYMS[i]) { - delete SDEXSYMS[i]; - } + delete SDEXSYMS[i]; } m_pModule->JBig2_Free(SDEXSYMS); } |