Index: src/codec/SkCodec.cpp |
diff --git a/src/codec/SkCodec.cpp b/src/codec/SkCodec.cpp |
index c8de73cd89b2416017d5f62991c4851d2422eda6..fc57e94f89256df7f2d602817e582913745e1e85 100644 |
--- a/src/codec/SkCodec.cpp |
+++ b/src/codec/SkCodec.cpp |
@@ -88,19 +88,19 @@ SkCodec* SkCodec::NewFromStream(SkStream* stream, |
// But this code follows the same pattern as the loop. |
#ifdef SK_CODEC_DECODES_PNG |
if (SkPngCodec::IsPng(buffer, bytesRead)) { |
- return SkPngCodec::NewFromStream(streamDeleter.detach(), chunkReader); |
+ return SkPngCodec::NewFromStream(streamDeleter.release(), chunkReader); |
} else |
#endif |
{ |
for (DecoderProc proc : gDecoderProcs) { |
if (proc.IsFormat(buffer, bytesRead)) { |
- return proc.NewFromStream(streamDeleter.detach()); |
+ return proc.NewFromStream(streamDeleter.release()); |
} |
} |
#ifdef SK_CODEC_DECODES_RAW |
// Try to treat the input as RAW if all the other checks failed. |
- return SkRawCodec::NewFromStream(streamDeleter.detach()); |
+ return SkRawCodec::NewFromStream(streamDeleter.release()); |
#endif |
} |