Index: src/pdf/SkPDFFont.cpp |
diff --git a/src/pdf/SkPDFFont.cpp b/src/pdf/SkPDFFont.cpp |
index b824506b189715b5ab0f04255716597c95482ae0..1641a8916c32c9757741658b379cfa105499ae73 100644 |
--- a/src/pdf/SkPDFFont.cpp |
+++ b/src/pdf/SkPDFFont.cpp |
@@ -875,9 +875,8 @@ SkPDFFont::SkPDFFont(SkAdvancedTypefaceMetrics* info, SkTypeface* typeface, |
fTypeface(ref_or_default(typeface)), |
fFirstGlyphID(1), |
fLastGlyphID(info ? info->fLastGlyphID : 0), |
- fFontInfo(info), |
- fDescriptor(relatedFontDescriptor) { |
- SkSafeRef(info); |
+ fFontInfo(SkSafeRef(info)), |
+ fDescriptor(SkSafeRef(relatedFontDescriptor)) { |
if (info == NULL) { |
fFontType = SkAdvancedTypefaceMetrics::kNotEmbeddable_Font; |
} else if (info->fMultiMaster) { |