Index: src/gpu/effects/GrDitherEffect.cpp |
diff --git a/src/gpu/effects/GrDitherEffect.cpp b/src/gpu/effects/GrDitherEffect.cpp |
index 3cff899ac53a740041a8ae8b3b1fca7078eb5793..bab0f32dd87559ba1d920e823d75149995d2d00d 100644 |
--- a/src/gpu/effects/GrDitherEffect.cpp |
+++ b/src/gpu/effects/GrDitherEffect.cpp |
@@ -17,8 +17,7 @@ |
class DitherEffect : public GrFragmentProcessor { |
public: |
static GrFragmentProcessor* Create() { |
- static DitherEffect gDitherEffect; |
- return SkRef(&gDitherEffect); |
+ return new DitherEffect; |
} |
virtual ~DitherEffect() {}; |