| Index: core/fpdfdoc/cpdf_annotlist.cpp
|
| diff --git a/core/fpdfdoc/cpdf_annotlist.cpp b/core/fpdfdoc/cpdf_annotlist.cpp
|
| index 8ab99e55d257242068bcb6599f6563eba48d46d5..e055f48d4a214775857561cb19b8572d0b38a8d1 100644
|
| --- a/core/fpdfdoc/cpdf_annotlist.cpp
|
| +++ b/core/fpdfdoc/cpdf_annotlist.cpp
|
| @@ -30,7 +30,7 @@ std::unique_ptr<CPDF_Annot> CreatePopupAnnot(CPDF_Annot* pAnnot,
|
| if (sContents.IsEmpty())
|
| return std::unique_ptr<CPDF_Annot>();
|
|
|
| - CPDF_Dictionary* pAnnotDict = new CPDF_Dictionary;
|
| + CPDF_Dictionary* pAnnotDict = new CPDF_Dictionary(pDocument);
|
| pAnnotDict->SetNameFor("Type", "Annot");
|
| pAnnotDict->SetNameFor("Subtype", "Popup");
|
| pAnnotDict->SetStringFor("T", pParentDict->GetStringFor("T"));
|
|
|