| 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..2a3623384bce372a95358d899551162657e5aa21 100644
|
| --- a/core/fpdfapi/fpdf_parser/cfdf_document.cpp
|
| +++ b/core/fpdfapi/fpdf_parser/cfdf_document.cpp
|
| @@ -23,10 +23,9 @@ CFDF_Document::~CFDF_Document() {
|
|
|
| CFDF_Document* CFDF_Document::CreateNewDoc() {
|
| CFDF_Document* pDoc = new CFDF_Document;
|
| - pDoc->m_pRootDict = new CPDF_Dictionary;
|
| + pDoc->m_pRootDict = new CPDF_Dictionary(pDoc);
|
| 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(pDoc));
|
| return pDoc;
|
| }
|
|
|
|
|