commit | e580bc195ad337bd7088db1b3c376543612b5061 | [log] [tgz] |
---|---|---|
author | senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu May 19 18:33:33 2011 +0000 |
committer | senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu May 19 18:33:33 2011 +0000 |
tree | e13e65777a7389cfce543a17de61c4e114103b87 | |
parent | 71ff02c8ef9d9d963f7b6c7f1bb4329ab427b268 [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
diff --git a/samplecode/SampleShaderText.cpp b/samplecode/SampleShaderText.cpp index 47ee7ee..790137c 100644 --- a/samplecode/SampleShaderText.cpp +++ b/samplecode/SampleShaderText.cpp
@@ -174,7 +174,7 @@ 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(); }