Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index 134c7a37e067d1faf573fe4e2a53a4eb5bacfff4..27cb6aa54edb75271c315bbd5713dfb828dceaa8 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -818,7 +818,7 @@ Error ImageGenSrc::draw(SkCanvas* canvas) const { |
// We have disabled these tests in DM.cpp. |
SkASSERT(kGray_8_SkColorType != gen->getInfo().colorType()); |
- SkAutoTDelete<SkImage> image(SkImage::NewFromGenerator(gen.detach(), nullptr)); |
+ SkAutoTDelete<SkImage> image(SkImage::NewFromGenerator(gen.release(), nullptr)); |
if (!image) { |
return "Could not create image from codec image generator."; |
} |