| Index: core/src/fxcodec/codec/fx_codec_jpeg.cpp
|
| diff --git a/core/src/fxcodec/codec/fx_codec_jpeg.cpp b/core/src/fxcodec/codec/fx_codec_jpeg.cpp
|
| index 489f099bf8ea3ee65e0f891b95569f7d016a6dce..d4c9926254c71a2e4ad0380e171f065de7fe0a18 100644
|
| --- a/core/src/fxcodec/codec/fx_codec_jpeg.cpp
|
| +++ b/core/src/fxcodec/codec/fx_codec_jpeg.cpp
|
| @@ -484,10 +484,7 @@ ICodec_ScanlineDecoder* CCodec_JpegModule::CreateDecoder(FX_LPCBYTE src_buf, FX_
|
| if (src_buf == NULL || src_size == 0) {
|
| return NULL;
|
| }
|
| - CCodec_JpegDecoder* pDecoder = FX_NEW CCodec_JpegDecoder;
|
| - if (pDecoder == NULL) {
|
| - return NULL;
|
| - }
|
| + CCodec_JpegDecoder* pDecoder = new CCodec_JpegDecoder;
|
| if (!pDecoder->Create(src_buf, src_size, width, height, nComps, ColorTransform, m_pExtProvider)) {
|
| delete pDecoder;
|
| return NULL;
|
|
|