Index: src/image/SkSurface_Raster.cpp |
diff --git a/src/image/SkSurface_Raster.cpp b/src/image/SkSurface_Raster.cpp |
index 192415341f8150e5500ea82cdb7d4b7374d1a9be..d07e94998f6aa3606daaa9425ddba800070781c1 100644 |
--- a/src/image/SkSurface_Raster.cpp |
+++ b/src/image/SkSurface_Raster.cpp |
@@ -131,7 +131,7 @@ |
// Our pixels are in memory, so read access on the snapshot SkImage could be cheap. |
// Lock the shared pixel ref to ensure peekPixels() is usable. |
- return SkMakeImageFromRasterBitmap(fBitmap, forceCopyMode).release(); |
+ return SkNewImageFromRasterBitmap(fBitmap, forceCopyMode); |
} |
void SkSurface_Raster::onRestoreBackingMutability() { |