Index: src/codec/SkBmpCodec.cpp |
diff --git a/src/codec/SkBmpCodec.cpp b/src/codec/SkBmpCodec.cpp |
index 5616a650a6de0ab75e6fb2789f47eff15b2f3f71..32f1d152770c81318568c0ce88b177cf29f407a6 100644 |
--- a/src/codec/SkBmpCodec.cpp |
+++ b/src/codec/SkBmpCodec.cpp |
@@ -509,7 +509,7 @@ bool SkBmpCodec::ReadHeader(SkStream* stream, bool inIco, SkCodec** codecOut) { |
return false; |
} |
- *codecOut = new SkBmpMaskCodec(imageInfo, stream, bitsPerPixel, masks.detach(), |
+ *codecOut = new SkBmpMaskCodec(imageInfo, stream, bitsPerPixel, masks.release(), |
rowOrder); |
return true; |
case kRLE_BmpInputFormat: |
@@ -541,7 +541,7 @@ SkCodec* SkBmpCodec::NewFromStream(SkStream* stream, bool inIco) { |
// codec has taken ownership of stream, so we do not need to |
// delete it. |
SkASSERT(codec); |
- streamDeleter.detach(); |
+ streamDeleter.release(); |
return codec; |
} |
return nullptr; |