Index: src/core/SkTypeface.cpp |
diff --git a/src/core/SkTypeface.cpp b/src/core/SkTypeface.cpp |
index 8d4233eac14d62921dba471c6a1a24e4ec0bb9ff..8b7620b484680ed0a0f6dd36f3a10bec31cae570 100644 |
--- a/src/core/SkTypeface.cpp |
+++ b/src/core/SkTypeface.cpp |
@@ -232,7 +232,7 @@ SkFontData* SkTypeface::createFontData() const { |
SkFontData* SkTypeface::onCreateFontData() const { |
int index; |
SkAutoTDelete<SkStreamAsset> stream(this->onOpenStream(&index)); |
- return new SkFontData(stream.detach(), index, nullptr, 0); |
+ return new SkFontData(stream.release(), index, nullptr, 0); |
}; |
int SkTypeface::charsToGlyphs(const void* chars, Encoding encoding, |