Index: src/animator/SkPaintPart.h |
diff --git a/src/animator/SkPaintPart.h b/src/animator/SkPaintPart.h |
index a7e28ed3e27c40aa9eccfac5d15341297bb00c08..1e35dce6e477e5883207b7cb116dcd2e33c2e656 100644 |
--- a/src/animator/SkPaintPart.h |
+++ b/src/animator/SkPaintPart.h |
@@ -63,7 +63,7 @@ class SkDrawTypeface : public SkPaintPart { |
void dump(SkAnimateMaker *) override; |
#endif |
SkTypeface* getTypeface() { |
- return SkTypeface::CreateFromName(fontName.c_str(), style); } |
+ return SkTypeface::MakeFromName(fontName.c_str(), style).release(); } |
protected: |
bool add() override; |
SkString fontName; |