Index: tests/ClipCacheTest.cpp |
diff --git a/tests/ClipCacheTest.cpp b/tests/ClipCacheTest.cpp |
index 2b29131ca562015bd2c285086111a4ef4b228859..1df10538b5e6b509e8bfb3efc01baf5cae5964c8 100644 |
--- a/tests/ClipCacheTest.cpp |
+++ b/tests/ClipCacheTest.cpp |
@@ -86,7 +86,7 @@ static void test_clip_bounds(skiatest::Reporter* reporter, GrContext* context) { |
// wrap the SkClipStack in a GrClipData |
GrClipData clipData; |
- clipData.fClipStack = &stack; |
+ clipData.fClipStack.reset(SkRef(&stack)); |
SkIRect devGrClipDataBound; |
clipData.getConservativeBounds(texture, |