Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 7a6d9675382cea1f6d11d7fe9c0c88bca038f312..173fe30e43bc2ad02710febf9aa3334bb5b3b4ba 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -335,7 +335,7 @@ void SkGpuDevice::replaceRenderTarget(bool shouldRetainContent) { |
SkASSERT(fRenderTarget != newRT); |
- fRenderTarget.reset(newRT.detach()); |
+ fRenderTarget.reset(newRT.release()); |
#ifdef SK_DEBUG |
SkImageInfo info = fRenderTarget->surfacePriv().info(fOpaque ? kOpaque_SkAlphaType : |