Index: src/codec/SkWbmpCodec.cpp |
diff --git a/src/codec/SkWbmpCodec.cpp b/src/codec/SkWbmpCodec.cpp |
index 706d5ddd460e4dc7b6764512e0de776f4da0fe41..90ee322b1f64c273a93765a85cce51009cd9a843 100644 |
--- a/src/codec/SkWbmpCodec.cpp |
+++ b/src/codec/SkWbmpCodec.cpp |
@@ -168,7 +168,7 @@ SkCodec* SkWbmpCodec::NewFromStream(SkStream* stream) { |
} |
SkImageInfo info = SkImageInfo::Make(size.width(), size.height(), |
kGray_8_SkColorType, kOpaque_SkAlphaType); |
- return new SkWbmpCodec(info, streamDeleter.detach()); |
+ return new SkWbmpCodec(info, streamDeleter.release()); |
} |
int SkWbmpCodec::onGetScanlines(void* dst, int count, size_t dstRowBytes) { |