| Index: fpdfsdk/fpdfsave.cpp
|
| diff --git a/fpdfsdk/fpdfsave.cpp b/fpdfsdk/fpdfsave.cpp
|
| index 243ba2a817bc728fc0e7ee8f0ac69a5b044c4c9b..aadedbf691ba4d9c2688b66ebb81e11c084d3ee9 100644
|
| --- a/fpdfsdk/fpdfsave.cpp
|
| +++ b/fpdfsdk/fpdfsave.cpp
|
| @@ -178,7 +178,8 @@ bool SaveXFADocumentData(CPDFXFA_Document* pDocument,
|
| // Datasets
|
| pContext->UpdateChecksum(pDsfileWrite.get());
|
| pContext->FinishChecksum();
|
| - CPDF_Dictionary* pDataDict = new CPDF_Dictionary;
|
| + CPDF_Dictionary* pDataDict =
|
| + new CPDF_Dictionary(pPDFDocument->GetByteStringPool());
|
| if (iDataSetsIndex != -1) {
|
| if (pDataSetsStream)
|
| pDataSetsStream->InitStreamFromFile(pDsfileWrite.get(), pDataDict);
|
| @@ -199,7 +200,8 @@ bool SaveXFADocumentData(CPDFXFA_Document* pDocument,
|
| if (pXFADocView->GetDoc()->SavePackage(XFA_HASHCODE_Form, pfileWrite.get(),
|
| pContext.get()) &&
|
| pfileWrite->GetSize() > 0) {
|
| - CPDF_Dictionary* pDataDict = new CPDF_Dictionary;
|
| + CPDF_Dictionary* pDataDict =
|
| + new CPDF_Dictionary(pPDFDocument->GetByteStringPool());
|
| if (iFormIndex != -1) {
|
| if (pFormStream)
|
| pFormStream->InitStreamFromFile(pfileWrite.get(), pDataDict);
|
|
|