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:
parent
71ff02c8ef
commit
e580bc195a
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user