Index: src/codec/SkWbmpCodec.cpp |
diff --git a/src/codec/SkWbmpCodec.cpp b/src/codec/SkWbmpCodec.cpp |
index 326fc2206a082b6d6bd6d897d8f4cce12c11c1fd..099b6e472a9e9f2087d05b56fbd0b0fe30609677 100644 |
--- a/src/codec/SkWbmpCodec.cpp |
+++ b/src/codec/SkWbmpCodec.cpp |
@@ -155,8 +155,7 @@ SkCodec::Result SkWbmpCodec::onGetPixels(const SkImageInfo& info, |
} |
bool SkWbmpCodec::IsWbmp(const void* buffer, size_t bytesRead) { |
- SkAutoTUnref<SkData> data(SkData::NewWithoutCopy(buffer, bytesRead)); |
- SkMemoryStream stream(data); |
+ SkMemoryStream stream(buffer, bytesRead, false); |
return read_header(&stream, nullptr); |
} |