Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Unified Diff: core/src/fpdfapi/fpdf_page/fpdf_page.cpp

Issue 513063003: No need to release resources in destructor of CPDF_ShadingObject (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fpdfapi/fpdf_page/fpdf_page.cpp
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page.cpp
index 6d3cf2978509d872e45ee3421611788b30040cfe..590a01aa6dbeeacadd403467ce9499f7505e68d5 100644
--- a/core/src/fpdfapi/fpdf_page/fpdf_page.cpp
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page.cpp
@@ -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);
jun_fang 2014/08/28 16:38:14 Maybe you can save a reference to document rather
Bo Xu 2014/08/28 17:07:24 Since we ensure to do forced clear on Patterns in
- }
}
void CPDF_ShadingObject::CopyData(const CPDF_PageObject* pSrc)
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698