Index: src/gpu/GrDrawTarget.cpp |
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp |
index b89d70ea2be724e2a8fb5bff5e1f6364efd5f31d..29e33b3048a1637a551eace9c2b10ada623372bd 100644 |
--- a/src/gpu/GrDrawTarget.cpp |
+++ b/src/gpu/GrDrawTarget.cpp |
@@ -880,7 +880,7 @@ GrDrawTarget::AutoClipRestore::AutoClipRestore(GrDrawTarget* target, const SkIRe |
fClip = fTarget->getClip(); |
fStack.init(); |
fStack.get()->clipDevRect(newClip, SkRegion::kReplace_Op); |
- fReplacementClip.fClipStack = fStack.get(); |
+ fReplacementClip.fClipStack.reset(SkRef(fStack.get())); |
target->setClip(&fReplacementClip); |
} |