Index: core/src/fxcodec/codec/fx_codec_jpx_opj.cpp |
diff --git a/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp b/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp |
index 0f0d2e5e410c8e62bee9cc91252acef7ec283da0..3b0490f3c6f0fe7e052f368e1b39e6344c424399 100644 |
--- a/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp |
+++ b/core/src/fxcodec/codec/fx_codec_jpx_opj.cpp |
@@ -801,10 +801,7 @@ CCodec_JpxModule::CCodec_JpxModule() |
} |
void* CCodec_JpxModule::CreateDecoder(FX_LPCBYTE src_buf, FX_DWORD src_size , FX_BOOL useColorSpace) |
{ |
- CJPX_Decoder* pDecoder = FX_NEW CJPX_Decoder; |
- if (pDecoder == NULL) { |
- return NULL; |
- } |
+ CJPX_Decoder* pDecoder = new CJPX_Decoder; |
pDecoder->m_useColorSpace = useColorSpace; |
if (!pDecoder->Init(src_buf, src_size)) { |
delete pDecoder; |