Index: src/effects/gradients/SkSweepGradient.cpp |
diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp |
index 3b54ac8ae993e16378a376e54241f8d10d29d280..b3474ec1a2cd23aeb808d2a0836719a40bda298b 100644 |
--- a/src/effects/gradients/SkSweepGradient.cpp |
+++ b/src/effects/gradients/SkSweepGradient.cpp |
@@ -208,8 +208,7 @@ public: |
static GrEffectRef* Create(GrContext* ctx, |
const SkSweepGradient& shader, |
const SkMatrix& matrix) { |
- AutoEffectUnref effect(SkNEW_ARGS(GrSweepGradient, (ctx, shader, matrix))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(GrSweepGradient, (ctx, shader, matrix)); |
} |
virtual ~GrSweepGradient() { } |