Index: samplecode/SamplePathEffects.cpp |
diff --git a/samplecode/SamplePathEffects.cpp b/samplecode/SamplePathEffects.cpp |
index 10715f382a962101074f19cf3e952444607e1e72..1f9915d378fae3178593d5571c301f13aef7d0b2 100644 |
--- a/samplecode/SamplePathEffects.cpp |
+++ b/samplecode/SamplePathEffects.cpp |
@@ -152,7 +152,7 @@ protected: |
paint.setARGB(0xFF, 0, 0, 0); |
paint.setPathEffect(make_warp_pe(fPhase)); |
TestRastBuilder testRastBuilder; |
- paint.setRasterizer(testRastBuilder.detachRasterizer())->unref(); |
+ paint.setRasterizer(testRastBuilder.detach()); |
canvas->drawPath(fPath, paint); |
} |