Index: samplecode/SampleFilterFuzz.cpp |
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
index 88372414ca741380ba4f3c88c659fbb80cfd2667..6a4f1f822f7ebe1751edfcf196c383625d1506a5 100644 |
--- a/samplecode/SampleFilterFuzz.cpp |
+++ b/samplecode/SampleFilterFuzz.cpp |
@@ -515,8 +515,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; |