Index: tests/PaintTest.cpp |
diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp |
index f50746777149f68f2aef5517a2de9976e8e450eb..bd00adb18d288fce132a75435261f29be6a9868e 100644 |
--- a/tests/PaintTest.cpp |
+++ b/tests/PaintTest.cpp |
@@ -80,7 +80,7 @@ |
SkRandom rand; |
SkPaint paint; |
- paint.setTypeface(SkTypeface::MakeDefault()); |
+ paint.setTypeface(SkTypeface::RefDefault())->unref(); |
SkTypeface* face = paint.getTypeface(); |
for (int i = 0; i < 1000; ++i) { |
@@ -333,7 +333,7 @@ |
REPORTER_ASSERT(r, paint.getHash() == defaultHash); |
// SkTypeface is the first field we hash, so test it specially. |
- paint.setTypeface(SkTypeface::MakeDefault()); |
+ paint.setTypeface(SkTypeface::RefDefault())->unref(); |
REPORTER_ASSERT(r, paint.getHash() != defaultHash); |
paint.setTypeface(nullptr); |
REPORTER_ASSERT(r, paint.getHash() == defaultHash); |