Index: src/ports/SkFontHost_win.cpp |
diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp |
index ca80baec4ff4b83a235464d88773cc2616b5d034..0e878bee0360d02dc92ad34e5ed4641800d64126 100644 |
--- a/src/ports/SkFontHost_win.cpp |
+++ b/src/ports/SkFontHost_win.cpp |
@@ -2463,7 +2463,7 @@ protected: |
SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const override { |
// could be in base impl |
- return this->createFromStream(SkStream::NewFromFile(path)); |
+ return this->createFromStream(SkStream::MakeFromFile(path).release()); |
} |
SkTypeface* onLegacyCreateTypeface(const char familyName[], SkFontStyle style) const override { |