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
This commit is contained in:
senorblanco@chromium.org 2011-05-19 18:33:33 +00:00
parent 71ff02c8ef
commit e580bc195a

View File

@ -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();
}