From: senorblanco@chromium.org Date: Thu, 19 May 2011 18:33:33 +0000 (+0000) Subject: Plug a leak in SampleShaderTest. X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~18425 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e580bc195ad337bd7088db1b3c376543612b5061;p=platform%2Fupstream%2FlibSkiaSharp.git 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 @@ 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(); }