| Index: core/fpdfapi/fpdf_page/fpdf_page_doc.cpp
|
| diff --git a/core/fpdfapi/fpdf_page/fpdf_page_doc.cpp b/core/fpdfapi/fpdf_page/fpdf_page_doc.cpp
|
| index c4e2a244249716fd5d11f215384fa4d201d662b8..192e0947bc2598c08b38b04b3c888cf5199092c4 100644
|
| --- a/core/fpdfapi/fpdf_page/fpdf_page_doc.cpp
|
| +++ b/core/fpdfapi/fpdf_page/fpdf_page_doc.cpp
|
| @@ -184,12 +184,13 @@ CPDF_Font* CPDF_DocPageData::GetStandardFont(const CFX_ByteString& fontName,
|
| return fontData->AddRef();
|
| }
|
|
|
| - CPDF_Dictionary* pDict = new CPDF_Dictionary;
|
| + CPDF_Dictionary* pDict = new CPDF_Dictionary(m_pPDFDoc->GetByteStringPool());
|
| pDict->SetNameFor("Type", "Font");
|
| pDict->SetNameFor("Subtype", "Type1");
|
| pDict->SetNameFor("BaseFont", fontName);
|
| if (pEncoding) {
|
| - pDict->SetFor("Encoding", pEncoding->Realize());
|
| + pDict->SetFor("Encoding",
|
| + pEncoding->Realize(m_pPDFDoc->GetByteStringPool()));
|
| }
|
| m_pPDFDoc->AddIndirectObject(pDict);
|
| std::unique_ptr<CPDF_Font> pFont = CPDF_Font::Create(m_pPDFDoc, pDict);
|
|
|