Index: fpdfsdk/src/fpdfformfill.cpp |
diff --git a/fpdfsdk/src/fpdfformfill.cpp b/fpdfsdk/src/fpdfformfill.cpp |
index a14c66fbc6f9ddb2f657d67854336f6043512f6e..15f86081e57c1f9bd042d1d594869a5358967f9a 100644 |
--- a/fpdfsdk/src/fpdfformfill.cpp |
+++ b/fpdfsdk/src/fpdfformfill.cpp |
@@ -695,7 +695,7 @@ DLLEXPORT void STDCALL FORM_DoDocumentAAction(FPDF_FORMHANDLE hHandle, |
if (!pDic) |
return; |
- CPDF_AAction aa = pDic->GetDictBy("AA"); |
+ CPDF_AAction aa(pDic->GetDictBy("AA")); |
if (aa.ActionExist((CPDF_AAction::AActionType)aaType)) { |
CPDF_Action action = aa.GetAction((CPDF_AAction::AActionType)aaType); |
CPDFSDK_ActionHandler* pActionHandler = |
@@ -719,7 +719,7 @@ DLLEXPORT void STDCALL FORM_DoPageAAction(FPDF_PAGE page, |
CPDFDoc_Environment* pEnv = pSDKDoc->GetEnv(); |
CPDFSDK_ActionHandler* pActionHandler = pEnv->GetActionHander(); |
CPDF_Dictionary* pPageDict = pPDFPage->m_pFormDict; |
- CPDF_AAction aa = pPageDict->GetDictBy("AA"); |
+ CPDF_AAction aa(pPageDict->GetDictBy("AA")); |
if (FPDFPAGE_AACTION_OPEN == aaType) { |
if (aa.ActionExist(CPDF_AAction::OpenPage)) { |
CPDF_Action action = aa.GetAction(CPDF_AAction::OpenPage); |