summaryrefslogtreecommitdiff
path: root/core/fxge/cfx_facecache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/cfx_facecache.cpp')
-rw-r--r--core/fxge/cfx_facecache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxge/cfx_facecache.cpp b/core/fxge/cfx_facecache.cpp
index bc29293c3a..4f373fff89 100644
--- a/core/fxge/cfx_facecache.cpp
+++ b/core/fxge/cfx_facecache.cpp
@@ -321,8 +321,8 @@ CFX_TypeFace* CFX_FaceCache::GetDeviceCache(const CFX_Font* pFont) {
#if _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_
if (!m_pTypeface) {
sk_sp<SkFontMgr> customMgr(SkFontMgr_New_Custom_Empty());
- m_pTypeface.reset(customMgr->createFromStream(
- new SkMemoryStream(pFont->GetFontData(), pFont->GetSize())));
+ m_pTypeface = customMgr->makeFromStream(pdfium::MakeUnique<SkMemoryStream>(
+ pFont->GetFontData(), pFont->GetSize()));
}
#endif
return m_pTypeface.get();