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 9e586e326f535c897dbb99960e39d2951486bf40..7de247b1bc5ef19ee8b5c3bae99f02042357e8d6 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); |
CPDF_Font* pFont = CPDF_Font::CreateFontF(m_pPDFDoc, pDict); |