Index: src/lazy/SkDiscardablePixelRef.cpp |
diff --git a/src/lazy/SkDiscardablePixelRef.cpp b/src/lazy/SkDiscardablePixelRef.cpp |
index 0cb0e02c27e9461828594c53f5e8fe2028f3a263..ba4a50ff823ae98464a5c6a4deba8ff3c8ae5d22 100644 |
--- a/src/lazy/SkDiscardablePixelRef.cpp |
+++ b/src/lazy/SkDiscardablePixelRef.cpp |
@@ -137,7 +137,7 @@ bool SkDEPRECATED_InstallDiscardablePixelRef(SkImageGenerator* generator, const |
return dst->tryAllocPixels(); |
} |
SkAutoTUnref<SkDiscardablePixelRef> ref( |
- new SkDiscardablePixelRef(prInfo, autoGenerator.detach(), dst->rowBytes(), factory)); |
+ new SkDiscardablePixelRef(prInfo, autoGenerator.release(), dst->rowBytes(), factory)); |
dst->setPixelRef(ref, origin.x(), origin.y()); |
return true; |
} |