No need to release resources in destructor of CPDF_ShadingObject
[pdfium.git] / core / src / fpdfapi / fpdf_page / fpdf_page.cpp
index 6d3cf29..590a01a 100644 (file)
@@ -606,10 +606,6 @@ CPDF_ShadingObject::CPDF_ShadingObject()
 }
 CPDF_ShadingObject::~CPDF_ShadingObject()
 {
-    CPDF_ShadingPattern* pShading = m_pShading;
-    if (pShading && pShading->m_pDocument) {
-        pShading->m_pDocument->GetPageData()->ReleasePattern(pShading->m_pShadingObj);
-    }
 }
 void CPDF_ShadingObject::CopyData(const CPDF_PageObject* pSrc)
 {