Index: src/effects/SkXfermodeImageFilter.cpp |
diff --git a/src/effects/SkXfermodeImageFilter.cpp b/src/effects/SkXfermodeImageFilter.cpp |
index 5f2d3689e8c6b338c2b6d800fd2bb0ffbf88b25c..a7f50c30cd08d0f17c7aba56ec70b707c4f5c9b7 100644 |
--- a/src/effects/SkXfermodeImageFilter.cpp |
+++ b/src/effects/SkXfermodeImageFilter.cpp |
@@ -102,7 +102,7 @@ bool SkXfermodeImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, Sk |
if (NULL != xferEffect) { |
paint.colorStage(0)->setEffect( |
GrSimpleTextureEffect::Create(foregroundTex, GrEffect::MakeDivByTextureWHMatrix(foregroundTex)))->unref(); |
- paint.colorStage(1)->setEffect(xferEffect); |
+ paint.colorStage(1)->setEffect(xferEffect)->unref(); |
context->drawRect(paint, srcRect); |
} else { |
paint.colorStage(0)->setEffect( |