Index: core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp |
diff --git a/core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp b/core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp |
index a85591ceef332173840852817adba7785f7d17fc..0e4bab1ae1fa62cad31f7f080ac5ae4a4d2dd636 100644 |
--- a/core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp |
+++ b/core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp |
@@ -99,12 +99,12 @@ void CPDF_PageContentGenerator::ProcessImage(CFX_ByteTextBuf& buf, |
uint32_t dwSavedObjNum = pStream->GetObjNum(); |
CFX_ByteString name = RealizeResource(pStream, "XObject"); |
if (dwSavedObjNum == 0) { |
- pImage->Release(); |
- pImageObj->m_pImage = m_pDocument->GetPageData()->GetImage(pStream); |
+ pImageObj->SetUnownedImage(m_pDocument->GetPageData()->GetImage(pStream)); |
} |
buf << "/" << PDF_NameEncode(name) << " Do Q\n"; |
} |
} |
+ |
void CPDF_PageContentGenerator::ProcessForm(CFX_ByteTextBuf& buf, |
const uint8_t* data, |
uint32_t size, |