diff --git a/samplecode/SampleShaderText.cpp b/samplecode/SampleShaderText.cpp index 47ee7eee7a..790137c1d7 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(); }