diff options
Diffstat (limited to 'gm/megalooper.cpp')
-rw-r--r-- | gm/megalooper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/megalooper.cpp b/gm/megalooper.cpp index 832b0a8749..0f3811a8bf 100644 --- a/gm/megalooper.cpp +++ b/gm/megalooper.cpp @@ -131,7 +131,7 @@ private: 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 @@ private: 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); |