Index: src/images/SkImageDecoder_libico.cpp |
diff --git a/src/images/SkImageDecoder_libico.cpp b/src/images/SkImageDecoder_libico.cpp |
index 93a875d4cbcd7b691a63d589f5a7faf0e4c8e272..ff04d74d066f936b941602f9cd5b34972a29e528 100644 |
--- a/src/images/SkImageDecoder_libico.cpp |
+++ b/src/images/SkImageDecoder_libico.cpp |
@@ -73,9 +73,8 @@ static int calculateRowBytesFor8888(int w, int bitCount) |
return 0; |
} |
-SkImageDecoder::Result SkICOImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) |
-{ |
- SkAutoTUnref<SkData> data(SkCopyStreamToData(stream)); |
+SkImageDecoder::Result SkICOImageDecoder::onDecode(SkStream* stream, SkBitmap* bm, Mode mode) { |
+ auto data = SkCopyStreamToData(stream); |
if (!data) { |
return kFailure; |
} |