Index: src/image/SkImage.cpp |
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp |
index 8a78f4558b5381aef88ce651f490326d0bef747b..1970c57839912db2d4288f8b32d9af5f780f72bb 100644 |
--- a/src/image/SkImage.cpp |
+++ b/src/image/SkImage.cpp |
@@ -134,7 +134,7 @@ SkData* SkImage::encode(SkPixelSerializer* serializer) const { |
} |
SkAutoTUnref<SkData> encoded(this->refEncoded()); |
if (encoded && effectiveSerializer->useEncodedData(encoded->data(), encoded->size())) { |
- return encoded.detach(); |
+ return encoded.release(); |
} |
SkBitmap bm; |