Index: fpdfsdk/pdfwindow/PWL_FontMap.cpp |
diff --git a/fpdfsdk/pdfwindow/PWL_FontMap.cpp b/fpdfsdk/pdfwindow/PWL_FontMap.cpp |
index d49f4ec6c0a446ef1e212e464915ee49702962f4..9f1c8549147cd84a3d57fd947ad0d028980ae69b 100644 |
--- a/fpdfsdk/pdfwindow/PWL_FontMap.cpp |
+++ b/fpdfsdk/pdfwindow/PWL_FontMap.cpp |
@@ -47,7 +47,7 @@ CPWL_FontMap::~CPWL_FontMap() { |
CPDF_Document* CPWL_FontMap::GetDocument() { |
if (!m_pPDFDoc) { |
if (CPDF_ModuleMgr::Get()) { |
- m_pPDFDoc.reset(new CPDF_Document(std::unique_ptr<CPDF_Parser>())); |
+ m_pPDFDoc = WrapUnique(new CPDF_Document(std::unique_ptr<CPDF_Parser>())); |
m_pPDFDoc->CreateNewDoc(); |
} |
} |