Index: samplecode/ClockFaceView.cpp |
diff --git a/samplecode/ClockFaceView.cpp b/samplecode/ClockFaceView.cpp |
index f5b43fb82f72864cd37bc27320860d999c7d9c7c..80debebcf9ec58e6f02372cbaaaa9ad88e7dca25 100644 |
--- a/samplecode/ClockFaceView.cpp |
+++ b/samplecode/ClockFaceView.cpp |
@@ -163,7 +163,7 @@ static void apply_shader(SkPaint* paint, float scale) |
p.setAntiAlias(true); |
r7(&rastBuilder, p, scale); |
- paint->setRasterizer(rastBuilder.detachRasterizer())->unref(); |
+ paint->setRasterizer(rastBuilder.detach()); |
paint->setColor(SK_ColorBLUE); |
} |