Index: src/fonts/SkFontMgr_fontconfig.cpp |
diff --git a/src/fonts/SkFontMgr_fontconfig.cpp b/src/fonts/SkFontMgr_fontconfig.cpp |
index de309d311bdfa910d2ed1fc698c66ed79924fd5e..50af9b4c4017902dca1c9a030de9efe9e4ede7b1 100644 |
--- a/src/fonts/SkFontMgr_fontconfig.cpp |
+++ b/src/fonts/SkFontMgr_fontconfig.cpp |
@@ -309,13 +309,13 @@ protected: |
return nullptr; |
} |
- SkTypeface* face = FontConfigTypeface::Create(style, isFixedWidth, stream.detach()); |
+ SkTypeface* face = FontConfigTypeface::Create(style, isFixedWidth, stream.release()); |
return face; |
} |
SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const override { |
SkAutoTDelete<SkStreamAsset> stream(SkStream::NewFromFile(path)); |
- return stream.get() ? this->createFromStream(stream.detach(), ttcIndex) : nullptr; |
+ return stream.get() ? this->createFromStream(stream.release(), ttcIndex) : nullptr; |
} |
SkTypeface* onLegacyCreateTypeface(const char familyName[], |