| Index: xfa/fgas/font/fgas_stdfontmgr.cpp
|
| diff --git a/xfa/fgas/font/fgas_stdfontmgr.cpp b/xfa/fgas/font/fgas_stdfontmgr.cpp
|
| index a0e7e39a4097cbcb0f1a74177f56fd785d344276..96081f57996bd8d8b88ef3e475cd4bd1d024fdaa 100644
|
| --- a/xfa/fgas/font/fgas_stdfontmgr.cpp
|
| +++ b/xfa/fgas/font/fgas_stdfontmgr.cpp
|
| @@ -847,13 +847,13 @@ CFGAS_GEFont* CFGAS_FontMgrImp::LoadFont(const CFX_WideString& wsFaceName,
|
| if (!pFontStream)
|
| return nullptr;
|
|
|
| - CFX_Font* pInternalFont = new CFX_Font();
|
| + std::unique_ptr<CFX_Font> pInternalFont(new CFX_Font());
|
| if (!pInternalFont->LoadFile(pFontStream, iFaceIndex)) {
|
| pFontStream->Release();
|
| return nullptr;
|
| }
|
|
|
| - CFGAS_GEFont* pFont = CFGAS_GEFont::LoadFont(pInternalFont, this);
|
| + CFGAS_GEFont* pFont = CFGAS_GEFont::LoadFont(std::move(pInternalFont), this);
|
| if (!pFont) {
|
| pFontStream->Release();
|
| return nullptr;
|
|
|