Index: gm/shadertext2.cpp |
diff --git a/gm/shadertext2.cpp b/gm/shadertext2.cpp |
index e580d91e1e5b59a3aef6e97ce54ac0cdee25fc31..87fe1b29f4ce534e2c223d70e43da60a9bb2d250 100644 |
--- a/gm/shadertext2.cpp |
+++ b/gm/shadertext2.cpp |
@@ -154,10 +154,11 @@ protected: |
canvas->translate(0, kPadY / 2 + kPointSize); |
columnH += kPadY / 2 + kPointSize; |
for (int lm = 0; lm < localMatrices.count(); ++lm) { |
- paint.setShader(SkShader::CreateBitmapShader(bmp, |
- SkShader::kMirror_TileMode, |
- SkShader::kRepeat_TileMode, |
- &localMatrices[lm].fMatrix)); |
+ paint.setShader( |
+ SkShader::CreateBitmapShader(bmp, |
+ SkShader::kMirror_TileMode, |
+ SkShader::kRepeat_TileMode, |
+ &localMatrices[lm].fMatrix))->unref(); |
canvas->save(); |
canvas->concat(matrices[m].fMatrix); |