Index: src/ports/SkFontMgr_fontconfig.cpp |
diff --git a/src/ports/SkFontMgr_fontconfig.cpp b/src/ports/SkFontMgr_fontconfig.cpp |
index fd5f1b08304e4b6cc5a12168ef075696c3b08725..54fa1b3575711a39cbca7a7a66d32e35a05f6a5a 100644 |
--- a/src/ports/SkFontMgr_fontconfig.cpp |
+++ b/src/ports/SkFontMgr_fontconfig.cpp |
@@ -903,7 +903,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 { |