Index: tests/RecordReplaceDrawTest.cpp |
diff --git a/tests/RecordReplaceDrawTest.cpp b/tests/RecordReplaceDrawTest.cpp |
index 693f6681c3b3ffb3fdef4ab0e40ab930b75560dc..618be72709106cc531951136621e3264ee32693b 100644 |
--- a/tests/RecordReplaceDrawTest.cpp |
+++ b/tests/RecordReplaceDrawTest.cpp |
@@ -97,7 +97,7 @@ void test_replacements(skiatest::Reporter* r, bool useBBH) { |
ri->fStop = 2; |
ri->fPos.set(0, 0); |
ri->fImage = make_image(SK_ColorRED); |
- ri->fPaint = paint; |
+ ri->fPaint = SkNEW(SkPaint); |
ri->fSrcRect = SkIRect::MakeWH(kWidth, kHeight); |
SkAutoTUnref<SkBBoxHierarchy> bbh; |