| Index: fpdfsdk/src/fpdf_ext.cpp
|
| diff --git a/fpdfsdk/src/fpdf_ext.cpp b/fpdfsdk/src/fpdf_ext.cpp
|
| index 93f6e187da60295dfd7137160b0a962dbde1befa..c454756ce911733cfc2388c217a27e8d64847159 100644
|
| --- a/fpdfsdk/src/fpdf_ext.cpp
|
| +++ b/fpdfsdk/src/fpdf_ext.cpp
|
| @@ -204,17 +204,13 @@ void CheckUnSupportError(CPDF_Document * pDoc, FX_DWORD err_code)
|
| if(pElement)
|
| CheckSharedForm(pElement, "workflowType");
|
|
|
| -
|
| // XFA Forms
|
| - CPDF_InterForm * pInterForm = FX_NEW CPDF_InterForm(pDoc,FALSE);
|
| - if (pInterForm)
|
| + CPDF_InterForm * pInterForm = new CPDF_InterForm(pDoc,FALSE);
|
| + if (pInterForm->HasXFAForm())
|
| {
|
| - if(pInterForm->HasXFAForm())
|
| - {
|
| - FPDF_UnSupportError(FPDF_UNSP_DOC_XFAFORM);
|
| - }
|
| - delete pInterForm;
|
| + FPDF_UnSupportError(FPDF_UNSP_DOC_XFAFORM);
|
| }
|
| + delete pInterForm;
|
| }
|
|
|
| DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document)
|
|
|