Index: src/utils/SkBitmapSourceDeserializer.cpp |
diff --git a/src/utils/SkBitmapSourceDeserializer.cpp b/src/utils/SkBitmapSourceDeserializer.cpp |
index eb66fd909d9c9cd676e02b8d71888934dd1d04fc..bb783bfeef2b9c34eaf50cbab7af7a2f890d0b68 100644 |
--- a/src/utils/SkBitmapSourceDeserializer.cpp |
+++ b/src/utils/SkBitmapSourceDeserializer.cpp |
@@ -29,5 +29,6 @@ |
} |
bitmap.setImmutable(); |
- return SkImageSource::Create(SkImage::MakeFromBitmap(bitmap).get(), src, dst, filterQuality); |
+ SkAutoTUnref<SkImage> image(SkImage::NewFromBitmap(bitmap)); |
+ return SkImageSource::Create(image, src, dst, filterQuality); |
} |