Index: gm/megalooper.cpp |
=================================================================== |
--- gm/megalooper.cpp (revision 9995) |
+++ gm/megalooper.cpp (working copy) |
@@ -131,7 +131,7 @@ |
for (int i = 0; i < 4; ++i) { |
SkPaint loopPaint; |
- loopPaint.setLooper(create1Looper(-kOffsetToOutsideClip, 0, gColors[i])); |
+ loopPaint.setLooper(create1Looper(-kOffsetToOutsideClip, 0, gColors[i]))->unref(); |
loopPaint.setAntiAlias(true); |
SkRect outerClip = { |
@@ -194,7 +194,7 @@ |
SkPaint paint; |
paint.setAntiAlias(true); |
- paint.setLooper(create4Looper(-kOffsetToOutsideClip-kHalfSquareSize, 0)); |
+ paint.setLooper(create4Looper(-kOffsetToOutsideClip-kHalfSquareSize, 0))->unref(); |
canvas->save(); |
canvas->clipRect(outerClip, SkRegion::kIntersect_Op); |