Index: src/codec/SkGifCodec.cpp |
diff --git a/src/codec/SkGifCodec.cpp b/src/codec/SkGifCodec.cpp |
index 56d20e927c5033e011fb8c20345dc90b1c2a9ace..2233c66c19f5ca81ac002f2f46bce377fc7e80d1 100644 |
--- a/src/codec/SkGifCodec.cpp |
+++ b/src/codec/SkGifCodec.cpp |
@@ -216,12 +216,12 @@ bool SkGifCodec::ReadHeader(SkStream* stream, SkCodec** codecOut, GifFileType** |
// the default. |
SkImageInfo imageInfo = SkImageInfo::Make(size.width(), size.height(), kIndex_8_SkColorType, |
alphaType); |
- *codecOut = new SkGifCodec(imageInfo, streamDeleter.detach(), gif.detach(), transIndex, |
+ *codecOut = new SkGifCodec(imageInfo, streamDeleter.release(), gif.release(), transIndex, |
frameRect, frameIsSubset); |
} else { |
SkASSERT(nullptr != gifOut); |
- streamDeleter.detach(); |
- *gifOut = gif.detach(); |
+ streamDeleter.release(); |
+ *gifOut = gif.release(); |
} |
return true; |
} |