From 2c4104443f5a7aea225bd853770cdc11ab431932 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 6 May 2015 15:09:06 -0700 Subject: Merge to XFA: Replace FX_NEW with new, remote tests from fxcodec Review URL: https://codereview.chromium.org/1084303002 (cherry picked from commit cfc1a654ef3e8b65bc447815d35932c185bf1422) R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1125363002 --- core/src/fxcodec/codec/fx_codec_jpx_opj.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to '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 0f0d2e5e41..3b0490f3c6 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; -- cgit v1.2.3