diff options
Diffstat (limited to 'core/fpdfapi/parser/cpdf_document.cpp')
-rw-r--r-- | core/fpdfapi/parser/cpdf_document.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/fpdfapi/parser/cpdf_document.cpp b/core/fpdfapi/parser/cpdf_document.cpp index 5f64c14d31..c5f64a790c 100644 --- a/core/fpdfapi/parser/cpdf_document.cpp +++ b/core/fpdfapi/parser/cpdf_document.cpp @@ -425,9 +425,7 @@ CPDF_Document::CPDF_Document(std::unique_ptr<CPDF_Parser> pParser) CPDF_Document::~CPDF_Document() { delete m_pDocPage; - if (CPDF_ModuleMgr::Get()->GetPageModule()) { - CPDF_ModuleMgr::Get()->GetPageModule()->ClearStockFont(this); - } + CPDF_ModuleMgr::Get()->GetPageModule()->ClearStockFont(this); m_pByteStringPool.DeleteObject(); // Make weak. } |