| 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 99c54e75cbb5f9b6873adc8756c477feba46d652..e2fc9169c821b05edd6297534c2e9d03758a7a0d 100644
|
| --- a/core/src/fxcodec/codec/fx_codec_jpeg.cpp
|
| +++ b/core/src/fxcodec/codec/fx_codec_jpeg.cpp
|
| @@ -215,10 +215,7 @@ static void _JpegEncode(const CFX_DIBSource* pSource, FX_LPBYTE& dest_buf, FX_ST
|
| }
|
| FX_LPBYTE line_buf = NULL;
|
| if (nComponents > 1) {
|
| - line_buf = FX_Alloc(FX_BYTE, width * nComponents);
|
| - if (line_buf == NULL) {
|
| - return;
|
| - }
|
| + line_buf = FX_Alloc2D(FX_BYTE, width, nComponents);
|
| }
|
| jpeg_set_defaults(&cinfo);
|
| if(quality != 75) {
|
|
|