From e580bc195ad337bd7088db1b3c376543612b5061 Mon Sep 17 00:00:00 2001 From: "senorblanco@chromium.org" Date: Thu, 19 May 2011 18:33:33 +0000 Subject: [PATCH] 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 --- samplecode/SampleShaderText.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ 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(); } -- 2.7.4