aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
diff options
context:
space:
mode:
authorGravatar senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-19 18:33:33 +0000
committerGravatar senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-19 18:33:33 +0000
commite580bc195ad337bd7088db1b3c376543612b5061 (patch)
treee13e65777a7389cfce543a17de61c4e114103b87 /samplecode
parent71ff02c8ef9d9d963f7b6c7f1bb4329ab427b268 (diff)
Plug a leak in SampleShaderTest.
Review URL: http://codereview.appspot.com/4517086/ git-svn-id: http://skia.googlecode.com/svn/trunk@1384 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode')
-rw-r--r--samplecode/SampleShaderText.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SampleShaderText.cpp b/samplecode/SampleShaderText.cpp
index 47ee7eee7a..790137c1d7 100644
--- a/samplecode/SampleShaderText.cpp
+++ b/samplecode/SampleShaderText.cpp
@@ -174,7 +174,7 @@ protected:
canvas->save();
canvas->translate(SkIntToScalar((s / testsPerCol) * colWidth),
SkIntToScalar((s % testsPerCol) * rowHeight));
- paint.setShader(shaders[s])->ref();
+ paint.setShader(shaders[s])->unref();
canvas->drawText(text, textLen, 0, textBase, paint);
canvas->restore();
}