Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 258343a92f6644909b65cb605fb7a13a6f0673e8..f1777441d65b305a11dd442ab4ef35834b991a89 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -481,7 +481,7 @@ public: |
*/ |
SkPaint tmp; |
tmp.setImageFilter(fPaint->getImageFilter()); |
- tmp.setXfermode(fPaint->getXfermode()); |
+ tmp.setXfermode(sk_ref_sp(fPaint->getXfermode())); |
SkRect storage; |
if (rawBounds) { |
// Make rawBounds include all paint outsets except for those due to image filters. |