| Index: core/fpdfapi/fpdf_parser/cfdf_document.cpp
|
| diff --git a/core/fpdfapi/fpdf_parser/cfdf_document.cpp b/core/fpdfapi/fpdf_parser/cfdf_document.cpp
|
| index 01829481730f2acccbf8f56170468c190c29ce13..d526fae6efc6b118d8220cda10a93e62333f3eb8 100644
|
| --- a/core/fpdfapi/fpdf_parser/cfdf_document.cpp
|
| +++ b/core/fpdfapi/fpdf_parser/cfdf_document.cpp
|
| @@ -23,10 +23,10 @@ CFDF_Document::~CFDF_Document() {
|
|
|
| CFDF_Document* CFDF_Document::CreateNewDoc() {
|
| CFDF_Document* pDoc = new CFDF_Document;
|
| - pDoc->m_pRootDict = new CPDF_Dictionary;
|
| + CFX_ByteStringPool* pPool = pDoc->GetByteStringPool();
|
| + pDoc->m_pRootDict = new CPDF_Dictionary(pPool);
|
| pDoc->AddIndirectObject(pDoc->m_pRootDict);
|
| - CPDF_Dictionary* pFDFDict = new CPDF_Dictionary;
|
| - pDoc->m_pRootDict->SetFor("FDF", pFDFDict);
|
| + pDoc->m_pRootDict->SetFor("FDF", new CPDF_Dictionary(pPool));
|
| return pDoc;
|
| }
|
|
|
|
|