Index: fpdfsdk/fpdfsave.cpp |
diff --git a/fpdfsdk/fpdfsave.cpp b/fpdfsdk/fpdfsave.cpp |
index 8293c371dc0bf66b046e4d0da04cff14ea8bceca..aa03e6d13cdd6b0496e07f5f8570d261102f5e99 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); |
@@ -201,7 +202,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); |