Index: core/src/fxcodec/codec/fx_codec_icc.cpp |
diff --git a/core/src/fxcodec/codec/fx_codec_icc.cpp b/core/src/fxcodec/codec/fx_codec_icc.cpp |
index 703d00a496edac3a8931d2b1ed0086fcaa6f2504..da503c03fd1a09b0bbb471e9f5de33b89bd53bd4 100644 |
--- a/core/src/fxcodec/codec/fx_codec_icc.cpp |
+++ b/core/src/fxcodec/codec/fx_codec_icc.cpp |
@@ -514,17 +514,13 @@ CCodec_IccModule::~CCodec_IccModule() |
CFX_IccProfileCache* pProfileCache; |
while (pos) { |
m_MapProfile.GetNextAssoc(pos, key, (void*&)pProfileCache); |
- if (pProfileCache) { |
- delete pProfileCache; |
- } |
+ delete pProfileCache; |
} |
pos = m_MapTranform.GetStartPosition(); |
CFX_IccTransformCache* pTransformCache; |
while (pos) { |
m_MapTranform.GetNextAssoc(pos, key, (void*&)pTransformCache); |
- if (pTransformCache) { |
- delete pTransformCache; |
- } |
+ delete pTransformCache; |
} |
} |
void* CCodec_IccModule::CreateTransform_sRGB(const uint8_t* pProfileData, FX_DWORD dwProfileSize, int32_t& nComponents, int32_t intent, FX_DWORD dwSrcFormat) |