Index: src/ports/SkFontConfigInterface_direct.cpp |
diff --git a/src/ports/SkFontConfigInterface_direct.cpp b/src/ports/SkFontConfigInterface_direct.cpp |
index 8fe9898bc719e9cf4be76663ad3769d3caf55422..cdd420c38c675b879683c5cd5227e06fe2b36766 100644 |
--- a/src/ports/SkFontConfigInterface_direct.cpp |
+++ b/src/ports/SkFontConfigInterface_direct.cpp |
@@ -702,7 +702,7 @@ bool SkFontConfigInterfaceDirect::matchFamilyName(const char familyName[], |
} |
SkStreamAsset* SkFontConfigInterfaceDirect::openStream(const FontIdentity& identity) { |
- return SkStream::NewFromFile(identity.fString.c_str()); |
+ return SkStream::MakeFromFile(identity.fString.c_str()).release(); |
} |
/////////////////////////////////////////////////////////////////////////////// |