| Index: xfa/fde/fde_gedevice.cpp
|
| diff --git a/xfa/fde/fde_gedevice.cpp b/xfa/fde/fde_gedevice.cpp
|
| index bf34135f3e11779c25db1eff426f1c18d13b5d6f..081f00a036d9ddbdbd964df7c0b224bab015f486 100644
|
| --- a/xfa/fde/fde_gedevice.cpp
|
| +++ b/xfa/fde/fde_gedevice.cpp
|
| @@ -105,7 +105,7 @@ bool CFDE_RenderDevice::DrawImage(CFX_DIBSource* pDib,
|
| return !!handle;
|
| }
|
| bool CFDE_RenderDevice::DrawString(CFDE_Brush* pBrush,
|
| - CFGAS_GEFont* pFont,
|
| + const CFX_RetainPtr<CFGAS_GEFont>& pFont,
|
| const FXTEXT_CHARPOS* pCharPos,
|
| int32_t iCount,
|
| FX_FLOAT fFontSize,
|
| @@ -126,8 +126,8 @@ bool CFDE_RenderDevice::DrawString(CFDE_Brush* pBrush,
|
| }
|
| }
|
| FXTEXT_CHARPOS* pCP = (FXTEXT_CHARPOS*)pCharPos;
|
| - CFGAS_GEFont* pCurFont = nullptr;
|
| - CFGAS_GEFont* pSTFont = nullptr;
|
| + CFX_RetainPtr<CFGAS_GEFont> pCurFont;
|
| + CFX_RetainPtr<CFGAS_GEFont> pSTFont;
|
| FXTEXT_CHARPOS* pCurCP = nullptr;
|
| int32_t iCurCount = 0;
|
|
|
|
|