Index: core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp |
diff --git a/core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp b/core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp |
index 929180e0b508d9937d5cd55e0fc6a48e1e2385dc..622f04b160bc30b59b52fe87cc072a4fb97cfdb5 100644 |
--- a/core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp |
+++ b/core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp |
@@ -3027,9 +3027,7 @@ CJBig2_SymbolDict *CJBig2_SDDProc::decode_Huffman(CJBig2_BitStream *pStream, |
return pDict; |
failed: |
for(I = 0; I < NSYMSDECODED; I++) { |
- if (SDNEWSYMS[I]) { |
- delete SDNEWSYMS[I]; |
- } |
+ delete SDNEWSYMS[I]; |
} |
m_pModule->JBig2_Free(SDNEWSYMS); |
if(SDREFAGG == 0) { |
@@ -3094,15 +3092,11 @@ CJBig2_Image *CJBig2_HTRDProc::decode_Arith(CJBig2_ArithDecoder *pArithDecoder, |
} |
} |
m_pModule->JBig2_Free(GI); |
- if(HSKIP) { |
- delete HSKIP; |
- } |
+ delete HSKIP; |
delete pGID; |
return HTREG; |
failed: |
- if(HSKIP) { |
- delete HSKIP; |
- } |
+ delete HSKIP; |
delete pGID; |
delete HTREG; |
return NULL; |