Index: src/ports/SkFontMgr_android.cpp |
diff --git a/src/ports/SkFontMgr_android.cpp b/src/ports/SkFontMgr_android.cpp |
index 8d2bc6b04a9c69ff9805af52035d698d0d76fed5..8a1916a59b74fe01563d8f62343f25e661c0441c 100644 |
--- a/src/ports/SkFontMgr_android.cpp |
+++ b/src/ports/SkFontMgr_android.cpp |
@@ -406,7 +406,7 @@ protected: |
} |
SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const override { |
- return this->createFromStream(new SkMemoryStream(data), ttcIndex); |
+ return this->createFromStream(new SkMemoryStream(sk_ref_sp(data)), ttcIndex); |
} |
SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const override { |