Index: src/pdf/SkPDFStream.cpp |
diff --git a/src/pdf/SkPDFStream.cpp b/src/pdf/SkPDFStream.cpp |
index b8f2e4e92b896d656e9a63d50ae7e8574f99ea1f..8b8f323db6c311a7708504cf68f610cc3f95ccba 100644 |
--- a/src/pdf/SkPDFStream.cpp |
+++ b/src/pdf/SkPDFStream.cpp |
@@ -45,7 +45,7 @@ void SkPDFStream::setData(SkStream* stream) { |
if (dup && dup->hasLength() && |
dup->getLength() <= length + strlen("/Filter_/FlateDecode_")) { |
this->insertInt("Length", dup->getLength()); |
- fCompressedData.reset(dup.detach()); |
+ fCompressedData.reset(dup.release()); |
return; |
} |
} |