Index: core/fxge/ge/fx_ge_text.cpp |
diff --git a/core/fxge/ge/fx_ge_text.cpp b/core/fxge/ge/fx_ge_text.cpp |
index 042e6f2b5bec21a492bf854f00509b93adba0534..51a53d94503bedae87a05823e9b9c3593730ace9 100644 |
--- a/core/fxge/ge/fx_ge_text.cpp |
+++ b/core/fxge/ge/fx_ge_text.cpp |
@@ -738,8 +738,10 @@ CFX_TypeFace* CFX_FontCache::GetDeviceCache(CFX_Font* pFont) { |
CFX_TypeFace* CFX_FaceCache::GetDeviceCache(CFX_Font* pFont) { |
if (!m_pTypeface) { |
- m_pTypeface = SkTypeface::CreateFromStream( |
- new SkMemoryStream(pFont->GetFontData(), pFont->GetSize())); |
+ m_pTypeface = |
+ SkTypeface::MakeFromStream( |
+ new SkMemoryStream(pFont->GetFontData(), pFont->GetSize())) |
+ .release(); |
} |
return m_pTypeface; |
} |