Index: core/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
diff --git a/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp b/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
index 0d16994bbee9c07d5e064cb499b4e89657fd9f20..1881244a0f4929e837e4db037dadfc6c453025d0 100644 |
--- a/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
+++ b/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp |
@@ -751,8 +751,8 @@ void CPDF_StreamContentParser::Handle_ExecuteXObject() { |
void CPDF_StreamContentParser::AddForm(CPDF_Stream* pStream) { |
std::unique_ptr<CPDF_FormObject> pFormObj(new CPDF_FormObject); |
- pFormObj->m_pForm = |
- new CPDF_Form(m_pDocument, m_pPageResources, pStream, m_pResources); |
+ pFormObj->m_pForm.reset( |
+ new CPDF_Form(m_pDocument, m_pPageResources, pStream, m_pResources)); |
pFormObj->m_FormMatrix = m_pCurStates->m_CTM; |
pFormObj->m_FormMatrix.Concat(m_mtContentToUser); |
CPDF_AllStates status; |