Index: src/ports/SkImageGeneratorCG.cpp |
diff --git a/src/ports/SkImageGeneratorCG.cpp b/src/ports/SkImageGeneratorCG.cpp |
index a3474a1c78a92beb3c4e0109234f8cb8e229e732..9be0b8c6f29596944de3c15d5b4037602d31fc1e 100644 |
--- a/src/ports/SkImageGeneratorCG.cpp |
+++ b/src/ports/SkImageGeneratorCG.cpp |
@@ -66,7 +66,7 @@ SkImageGenerator* SkImageGeneratorCG::NewFromEncodedCG(SkData* data) { |
// though I think it makes sense to wait until we understand how |
// we want to communicate it to the generator. |
- return new SkImageGeneratorCG(info, autoImageSrc.detach(), data); |
+ return new SkImageGeneratorCG(info, autoImageSrc.release(), data); |
} |
SkImageGeneratorCG::SkImageGeneratorCG(const SkImageInfo& info, const void* imageSrc, SkData* data) |