| Index: xfa/fxbarcode/BC_TwoDimWriter.cpp
|
| diff --git a/xfa/fxbarcode/BC_TwoDimWriter.cpp b/xfa/fxbarcode/BC_TwoDimWriter.cpp
|
| index f0065a02b9e770837dd58610ceb457f011729237..a844bf1c42363a8f3a2a68ad7509096f0c24f99a 100644
|
| --- a/xfa/fxbarcode/BC_TwoDimWriter.cpp
|
| +++ b/xfa/fxbarcode/BC_TwoDimWriter.cpp
|
| @@ -53,6 +53,7 @@ void CBC_TwoDimWriter::RenderDeviceResult(CFX_RenderDevice* device,
|
| }
|
| }
|
| }
|
| +
|
| void CBC_TwoDimWriter::RenderBitmapResult(CFX_DIBitmap*& pOutBitmap,
|
| int32_t& e) {
|
| if (m_bFixedSize) {
|
| @@ -80,12 +81,11 @@ void CBC_TwoDimWriter::RenderBitmapResult(CFX_DIBitmap*& pOutBitmap,
|
| }
|
| if (!m_bFixedSize) {
|
| CFX_DIBitmap* pStretchBitmap = pOutBitmap->StretchTo(m_Width, m_Height);
|
| - if (pOutBitmap) {
|
| - delete pOutBitmap;
|
| - }
|
| + delete pOutBitmap;
|
| pOutBitmap = pStretchBitmap;
|
| }
|
| }
|
| +
|
| void CBC_TwoDimWriter::RenderResult(uint8_t* code,
|
| int32_t codeWidth,
|
| int32_t codeHeight,
|
|
|