| Index: core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
|
| diff --git a/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp b/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
|
| index 1eb4286aa174be597d1ad7b9a2f2541faa4412e2..3692caa688e066e6fcc992c166b7a069a8e87361 100644
|
| --- a/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
|
| +++ b/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
|
| @@ -470,8 +470,8 @@ CPDF_FlateEncoder::CPDF_FlateEncoder(const uint8_t* pBuffer,
|
| }
|
|
|
| CPDF_FlateEncoder::~CPDF_FlateEncoder() {
|
| - if (m_bCloned && m_pDict)
|
| - m_pDict->Release();
|
| + if (m_bCloned)
|
| + delete m_pDict;
|
| if (m_bNewData)
|
| FX_Free(m_pData);
|
| }
|
| @@ -903,8 +903,8 @@ CPDF_Creator::CPDF_Creator(CPDF_Document* pDoc)
|
|
|
| CPDF_Creator::~CPDF_Creator() {
|
| ResetStandardSecurity();
|
| - if (m_bEncryptCloned && m_pEncryptDict) {
|
| - m_pEncryptDict->Release();
|
| + if (m_bEncryptCloned) {
|
| + delete m_pEncryptDict;
|
| m_pEncryptDict = nullptr;
|
| }
|
| Clear();
|
|
|