Index: xfa/fxbarcode/oned/BC_OneDimWriter.cpp |
diff --git a/xfa/fxbarcode/oned/BC_OneDimWriter.cpp b/xfa/fxbarcode/oned/BC_OneDimWriter.cpp |
index 0555ba65fd4a9e7adb885126ad2b44b1ee77423b..09f7aea9dbf24a1f082381d87eef1ed6e757cc17 100644 |
--- a/xfa/fxbarcode/oned/BC_OneDimWriter.cpp |
+++ b/xfa/fxbarcode/oned/BC_OneDimWriter.cpp |
@@ -343,9 +343,10 @@ void CBC_OneDimWriter::RenderBitmapResult(CFX_DIBitmap*& pOutBitmap, |
e); |
BC_EXCEPTION_CHECK_ReturnVoid(e); |
} |
- CFX_DIBitmap* pStretchBitmap = pOutBitmap->StretchTo(m_Width, m_Height); |
+ std::unique_ptr<CFX_DIBitmap> pStretchBitmap = |
+ pOutBitmap->StretchTo(m_Width, m_Height); |
delete pOutBitmap; |
- pOutBitmap = pStretchBitmap; |
+ pOutBitmap = pStretchBitmap.release(); |
} |
void CBC_OneDimWriter::RenderDeviceResult(CFX_RenderDevice* device, |