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