diff options
author | tsepez <tsepez@chromium.org> | 2016-05-16 14:10:22 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-16 14:10:22 -0700 |
commit | 44d83f3f0b90f4c53ca42115d4f1ed614b25c3a7 (patch) | |
tree | f54ee0cd640a9480341844dac86a4178892c94e5 /fpdfsdk/fpdfxfa/fpdfxfa_page.cpp | |
parent | 3cc01f2ba255f4b7584668ee2b8e5ed97792c26d (diff) | |
download | pdfium-44d83f3f0b90f4c53ca42115d4f1ed614b25c3a7.tar.xz |
Use CFX_RetainPtr<> to refcount CPDFXFA_Page
Review-Url: https://codereview.chromium.org/1984693002
Diffstat (limited to 'fpdfsdk/fpdfxfa/fpdfxfa_page.cpp')
-rw-r--r-- | fpdfsdk/fpdfxfa/fpdfxfa_page.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/fpdfsdk/fpdfxfa/fpdfxfa_page.cpp b/fpdfsdk/fpdfxfa/fpdfxfa_page.cpp index 22c8f995f2..8dbbf4e07c 100644 --- a/fpdfsdk/fpdfxfa/fpdfxfa_page.cpp +++ b/fpdfsdk/fpdfxfa/fpdfxfa_page.cpp @@ -21,16 +21,9 @@ CPDFXFA_Page::CPDFXFA_Page(CPDFXFA_Document* pDoc, int page_index) m_iPageIndex(page_index), m_iRef(1) {} -CPDFXFA_Page::~CPDFXFA_Page() {} - -void CPDFXFA_Page::Release() { - if (--m_iRef > 0) - return; - +CPDFXFA_Page::~CPDFXFA_Page() { if (m_pDocument) m_pDocument->RemovePage(this); - - delete this; } FX_BOOL CPDFXFA_Page::LoadPDFPage() { |