Index: src/pdf/SkPDFDocument.cpp |
diff --git a/src/pdf/SkPDFDocument.cpp b/src/pdf/SkPDFDocument.cpp |
index 221f240ba07c19fd221198623d95066cbb28650f..2b7eda1307fd574a3bc9cbd07eeb7788ab119bc7 100644 |
--- a/src/pdf/SkPDFDocument.cpp |
+++ b/src/pdf/SkPDFDocument.cpp |
@@ -278,8 +278,7 @@ void SkPDFDocument::onEndPage() { |
if (annotations->size() > 0) { |
page->insertObject("Annots", std::move(annotations)); |
} |
- auto contentData = fPageDevice->content(); |
- auto contentObject = sk_make_sp<SkPDFStream>(contentData.get()); |
+ auto contentObject = sk_make_sp<SkPDFStream>(fPageDevice->content()); |
this->serialize(contentObject); |
page->insertObjRef("Contents", std::move(contentObject)); |
fPageDevice->appendDestinations(fDests.get(), page.get()); |