Index: src/ports/SkFontHost_win.cpp |
diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp |
index 45e76c797dfba8ee1f8e0363dced1b1efa8b7232..ca80baec4ff4b83a235464d88773cc2616b5d034 100644 |
--- a/src/ports/SkFontHost_win.cpp |
+++ b/src/ports/SkFontHost_win.cpp |
@@ -2458,7 +2458,7 @@ protected: |
SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const override { |
// could be in base impl |
- return this->createFromStream(new SkMemoryStream(data)); |
+ return this->createFromStream(new SkMemoryStream(sk_ref_sp(data))); |
} |
SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const override { |