Index: fpdfsdk/cpdfsdk_document.cpp |
diff --git a/fpdfsdk/cpdfsdk_document.cpp b/fpdfsdk/cpdfsdk_document.cpp |
index 01e4d88ac1dea09259b9df905878caf00f773af7..3912e0696471b5f8af4a95c6748259ba04a25d7b 100644 |
--- a/fpdfsdk/cpdfsdk_document.cpp |
+++ b/fpdfsdk/cpdfsdk_document.cpp |
@@ -158,7 +158,7 @@ UnderlyingPageType* CPDFSDK_Document::GetPage(int nIndex) { |
CPDFSDK_InterForm* CPDFSDK_Document::GetInterForm() { |
if (!m_pInterForm) |
- m_pInterForm.reset(new CPDFSDK_InterForm(this)); |
+ m_pInterForm = WrapUnique(new CPDFSDK_InterForm(this)); |
return m_pInterForm.get(); |
} |