Index: fuzz/FilterFuzz.cpp |
diff --git a/fuzz/FilterFuzz.cpp b/fuzz/FilterFuzz.cpp |
index bbc403c6364132d1395d3a54a0cde96fda6ed845..cad32466fc0a45dc38de93b9f788d641bb0b616b 100644 |
--- a/fuzz/FilterFuzz.cpp |
+++ b/fuzz/FilterFuzz.cpp |
@@ -512,7 +512,9 @@ |
if (false) { |
// our validating buffer does not support typefaces yet, so skip this for now |
- paint.setTypeface(SkTypeface::MakeFromName(make_font_name().c_str(),make_typeface_style())); |
+ SkAutoTUnref<SkTypeface> typeface( |
+ SkTypeface::CreateFromName(make_font_name().c_str(), make_typeface_style())); |
+ paint.setTypeface(typeface); |
} |
SkLayerRasterizer::Builder rasterizerBuilder; |