Index: fpdfsdk/cpdfsdk_document.cpp |
diff --git a/fpdfsdk/cpdfsdk_document.cpp b/fpdfsdk/cpdfsdk_document.cpp |
index 677dd835f811020dfdc13001de478ee036326d0d..78bcf49185c4b32a85c90602254b26759c4b7cd7 100644 |
--- a/fpdfsdk/cpdfsdk_document.cpp |
+++ b/fpdfsdk/cpdfsdk_document.cpp |
@@ -162,7 +162,7 @@ UnderlyingPageType* CPDFSDK_Document::GetPage(int nIndex) { |
CPDFSDK_InterForm* CPDFSDK_Document::GetInterForm() { |
if (!m_pInterForm) |
- m_pInterForm = pdfium::MakeUnique<CPDFSDK_InterForm>(this); |
+ m_pInterForm = pdfium::MakeUnique<CPDFSDK_InterForm>(GetEnv()); |
return m_pInterForm.get(); |
} |