Index: tests/RecordTest.cpp |
diff --git a/tests/RecordTest.cpp b/tests/RecordTest.cpp |
index 8ec5bcba7653fa27c9ad432b18b1a024335fe493..2fcc1e9c53cc6a6020fa4aab979e6bb6ec91a015 100644 |
--- a/tests/RecordTest.cpp |
+++ b/tests/RecordTest.cpp |
@@ -102,7 +102,7 @@ DEF_TEST(RecordAnalysis, r) { |
*(bitmap2.getAddr32(0, 0)) = SK_ColorGREEN; |
SkShader* shader = SkShader::CreateBitmapShader(bitmap2, SkShader::kClamp_TileMode, |
SkShader::kClamp_TileMode); |
- paint2.setShader(shader); |
+ paint2.setShader(shader)->unref(); |
REPORTER_ASSERT(r, shader->asABitmap(NULL, NULL, NULL) == SkShader::kDefault_BitmapType); |
APPEND(record, SkRecords::DrawRect, paint2, rect); |