Index: src/core/SkDraw.cpp |
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp |
index c35247bd99fc68925deaff6a73ec76a79a5b55b0..60db401aea54408025f35e19c15d9668070ded33 100644 |
--- a/src/core/SkDraw.cpp |
+++ b/src/core/SkDraw.cpp |
@@ -1615,7 +1615,7 @@ void SkDraw::drawPosText_asPaths(const char text[], size_t byteLength, |
// Now restore the original settings, so we "draw" with whatever style/stroking. |
paint.setStyle(origPaint.getStyle()); |
- paint.setPathEffect(origPaint.getPathEffect()); |
+ paint.setPathEffect(sk_ref_sp(origPaint.getPathEffect())); |
while (text < stop) { |
const SkGlyph& glyph = glyphCacheProc(cache.get(), &text); |