| Index: core/fpdfapi/fpdf_font/cpdf_type3font.cpp
|
| diff --git a/core/fpdfapi/fpdf_font/cpdf_type3font.cpp b/core/fpdfapi/fpdf_font/cpdf_type3font.cpp
|
| index be280948ae560cb49069f3971b228829855d42a0..6c339ea5a723bfb3dd65c9e6309a3f0c151aba94 100644
|
| --- a/core/fpdfapi/fpdf_font/cpdf_type3font.cpp
|
| +++ b/core/fpdfapi/fpdf_font/cpdf_type3font.cpp
|
| @@ -136,10 +136,8 @@ CPDF_Type3Char* CPDF_Type3Font::LoadChar(uint32_t charcode, int level) {
|
| ASSERT(!pdfium::ContainsKey(m_CacheMap, charcode));
|
| CPDF_Type3Char* pCachedChar = pNewChar.release();
|
| m_CacheMap[charcode] = pCachedChar;
|
| - if (pCachedChar->m_pForm->GetPageObjectList()->empty()) {
|
| - delete pCachedChar->m_pForm;
|
| - pCachedChar->m_pForm = nullptr;
|
| - }
|
| + if (pCachedChar->m_pForm->GetPageObjectList()->empty())
|
| + pCachedChar->m_pForm.reset();
|
| return pCachedChar;
|
| }
|
|
|
|
|