Index: src/codec/SkAndroidCodec.cpp |
diff --git a/src/codec/SkAndroidCodec.cpp b/src/codec/SkAndroidCodec.cpp |
index 6c3efe095a45f12e99ff84ada3d7fa83356efdaf..6db0991c0d6ca7e611aa7e763ce09564355f766b 100644 |
--- a/src/codec/SkAndroidCodec.cpp |
+++ b/src/codec/SkAndroidCodec.cpp |
@@ -41,14 +41,14 @@ SkAndroidCodec* SkAndroidCodec::NewFromStream(SkStream* stream, SkPngChunkReader |
#endif |
case kBMP_SkEncodedFormat: |
case kWBMP_SkEncodedFormat: |
- return new SkSampledCodec(codec.detach()); |
+ return new SkSampledCodec(codec.release()); |
#ifdef SK_CODEC_DECODES_WEBP |
case kWEBP_SkEncodedFormat: |
- return new SkWebpAdapterCodec((SkWebpCodec*) codec.detach()); |
+ return new SkWebpAdapterCodec((SkWebpCodec*) codec.release()); |
#endif |
#ifdef SK_CODEC_DECODES_RAW |
case kDNG_SkEncodedFormat: |
- return new SkRawAdapterCodec((SkRawCodec*)codec.detach()); |
+ return new SkRawAdapterCodec((SkRawCodec*)codec.release()); |
#endif |
default: |
return nullptr; |