aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gm/dashing.cpp2
-rw-r--r--gm/shallowgradient.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/gm/dashing.cpp b/gm/dashing.cpp
index 7fe3029ca2..bbd0b65c20 100644
--- a/gm/dashing.cpp
+++ b/gm/dashing.cpp
@@ -202,7 +202,7 @@ protected:
SkScalar intervals[2] = { dashLength, dashLength };
- p.setPathEffect(new SkDashPathEffect(intervals, 2, phase, false));
+ p.setPathEffect(new SkDashPathEffect(intervals, 2, phase, false))->unref();
SkPoint pts[2];
diff --git a/gm/shallowgradient.cpp b/gm/shallowgradient.cpp
index 672193d956..fd14943395 100644
--- a/gm/shallowgradient.cpp
+++ b/gm/shallowgradient.cpp
@@ -58,7 +58,7 @@ protected:
SkSize size = SkSize::Make(r.width(), r.height());
SkPaint paint;
- paint.setShader(fProc(colors, colorCount, size));
+ paint.setShader(fProc(colors, colorCount, size))->unref();
canvas->drawRect(r, paint);
}