Index: src/codec/SkRawCodec.cpp |
diff --git a/src/codec/SkRawCodec.cpp b/src/codec/SkRawCodec.cpp |
index 208bd8952d1be3186f6acb711518296e0833c7fc..3b7b9a96eead8cc30c9e2718825cd30453449033 100644 |
--- a/src/codec/SkRawCodec.cpp |
+++ b/src/codec/SkRawCodec.cpp |
@@ -381,7 +381,7 @@ public: |
if (fStream->getMemoryBase()) { // directly copy if getMemoryBase() is available. |
SkAutoTUnref<SkData> data(SkData::NewWithCopy( |
static_cast<const uint8_t*>(fStream->getMemoryBase()) + offset, bytesToRead)); |
- fStream.free(); |
+ fStream.reset(); |
return new SkMemoryStream(data); |
} else { |
SkAutoTUnref<SkData> data(SkData::NewUninitialized(bytesToRead)); |