Index: src/android/SkBitmapRegionDecoder.cpp |
diff --git a/src/android/SkBitmapRegionDecoder.cpp b/src/android/SkBitmapRegionDecoder.cpp |
index a153282b0943b1028ce101d2ac251c2c124c1167..712034ba442b15a2ae36ae5e49e33735da6ecf97 100644 |
--- a/src/android/SkBitmapRegionDecoder.cpp |
+++ b/src/android/SkBitmapRegionDecoder.cpp |
@@ -24,7 +24,7 @@ SkBitmapRegionDecoder* SkBitmapRegionDecoder::Create( |
SkAutoTDelete<SkStreamRewindable> streamDeleter(stream); |
switch (strategy) { |
case kCanvas_Strategy: { |
- SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(streamDeleter.detach())); |
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(streamDeleter.release())); |
if (nullptr == codec) { |
SkCodecPrintf("Error: Failed to create decoder.\n"); |
return nullptr; |
@@ -47,11 +47,11 @@ SkBitmapRegionDecoder* SkBitmapRegionDecoder::Create( |
SkASSERT(SkCodec::kTopDown_SkScanlineOrder == codec->getScanlineOrder() || |
SkCodec::kNone_SkScanlineOrder == codec->getScanlineOrder()); |
- return new SkBitmapRegionCanvas(codec.detach()); |
+ return new SkBitmapRegionCanvas(codec.release()); |
} |
case kAndroidCodec_Strategy: { |
SkAutoTDelete<SkAndroidCodec> codec = |
- SkAndroidCodec::NewFromStream(streamDeleter.detach()); |
+ SkAndroidCodec::NewFromStream(streamDeleter.release()); |
if (nullptr == codec) { |
SkCodecPrintf("Error: Failed to create codec.\n"); |
return NULL; |
@@ -67,7 +67,7 @@ SkBitmapRegionDecoder* SkBitmapRegionDecoder::Create( |
return nullptr; |
} |
- return new SkBitmapRegionCodec(codec.detach()); |
+ return new SkBitmapRegionCodec(codec.release()); |
} |
default: |
SkASSERT(false); |