Index: src/pdf/SkPDFFont.cpp |
diff --git a/src/pdf/SkPDFFont.cpp b/src/pdf/SkPDFFont.cpp |
index 8718596b8eb7b659ab2bdc59ebe0ea26b16522ac..e748718a5c94a11d3ee9adeb00cd077c851a7eaf 100644 |
--- a/src/pdf/SkPDFFont.cpp |
+++ b/src/pdf/SkPDFFont.cpp |
@@ -1329,7 +1329,7 @@ SkPDFType3Font::~SkPDFType3Font() {} |
bool SkPDFType3Font::populate(uint16_t glyphID) { |
SkPaint paint; |
- paint.setTypeface(typeface()); |
+ paint.setTypeface(sk_ref_sp(this->typeface())); |
paint.setTextSize(1000); |
const SkSurfaceProps props(0, kUnknown_SkPixelGeometry); |
SkAutoGlyphCache autoCache(paint, &props, nullptr); |