Index: src/ports/SkFontMgr_win_dw.cpp |
diff --git a/src/ports/SkFontMgr_win_dw.cpp b/src/ports/SkFontMgr_win_dw.cpp |
index bacac2ceef63154714fc1adc85bcb70b83f559f1..833f95bb0ef72c899eec3dc15fdc044a93eb41bf 100644 |
--- a/src/ports/SkFontMgr_win_dw.cpp |
+++ b/src/ports/SkFontMgr_win_dw.cpp |
@@ -929,7 +929,7 @@ SkTypeface* SkFontMgr_DirectWrite::onCreateFromStream(SkStreamAsset* stream, int |
} |
SkTypeface* SkFontMgr_DirectWrite::onCreateFromData(SkData* data, int ttcIndex) const { |
- return this->createFromStream(new SkMemoryStream(data), ttcIndex); |
+ return this->createFromStream(new SkMemoryStream(sk_ref_sp(data)), ttcIndex); |
} |
SkTypeface* SkFontMgr_DirectWrite::onCreateFromFile(const char path[], int ttcIndex) const { |