Index: fpdfsdk/formfiller/cba_fontmap.cpp |
diff --git a/fpdfsdk/formfiller/cba_fontmap.cpp b/fpdfsdk/formfiller/cba_fontmap.cpp |
index 04d6a72ec557527e99861ac9eac4d0c4019976ee..09c54ca6f3cf0ef58f401f41656f94c323420a28 100644 |
--- a/fpdfsdk/formfiller/cba_fontmap.cpp |
+++ b/fpdfsdk/formfiller/cba_fontmap.cpp |
@@ -155,7 +155,7 @@ void CBA_FontMap::AddFontToAnnotDict(CPDF_Font* pFont, |
CPDF_Dictionary* pAPDict = m_pAnnotDict->GetDictFor("AP"); |
if (!pAPDict) { |
- pAPDict = new CPDF_Dictionary; |
+ pAPDict = new CPDF_Dictionary(m_pDocument->GetByteStringPool()); |
m_pAnnotDict->SetFor("AP", pAPDict); |
} |
@@ -173,19 +173,20 @@ void CBA_FontMap::AddFontToAnnotDict(CPDF_Font* pFont, |
CPDF_Dictionary* pStreamDict = pStream->GetDict(); |
if (!pStreamDict) { |
- pStreamDict = new CPDF_Dictionary; |
+ pStreamDict = new CPDF_Dictionary(m_pDocument->GetByteStringPool()); |
pStream->InitStream(nullptr, 0, pStreamDict); |
} |
if (pStreamDict) { |
CPDF_Dictionary* pStreamResList = pStreamDict->GetDictFor("Resources"); |
if (!pStreamResList) { |
- pStreamResList = new CPDF_Dictionary(); |
+ pStreamResList = new CPDF_Dictionary(m_pDocument->GetByteStringPool()); |
pStreamDict->SetFor("Resources", pStreamResList); |
} |
CPDF_Dictionary* pStreamResFontList = pStreamResList->GetDictFor("Font"); |
if (!pStreamResFontList) { |
- pStreamResFontList = new CPDF_Dictionary; |
+ pStreamResFontList = |
+ new CPDF_Dictionary(m_pDocument->GetByteStringPool()); |
pStreamResList->SetReferenceFor( |
"Font", m_pDocument, |
m_pDocument->AddIndirectObject(pStreamResFontList)); |