| Index: src/pdf/SkPDFDevice.cpp
|
| diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
|
| index 9d593aa80ae0a8ada38d4b3ea5580baa672ac229..744d42d25ea169dc4628c6fedbcb29555f928b68 100644
|
| --- a/src/pdf/SkPDFDevice.cpp
|
| +++ b/src/pdf/SkPDFDevice.cpp
|
| @@ -1711,7 +1711,7 @@ void SkPDFDevice::appendDestinations(SkPDFDict* dict, SkPDFObject* page) const {
|
| for (const NamedDestination& dest : fNamedDestinations) {
|
| auto pdfDest = sk_make_sp<SkPDFArray>();
|
| pdfDest->reserve(5);
|
| - pdfDest->appendObjRef(sk_sp<SkPDFObject>(SkRef(page)));
|
| + pdfDest->appendObjRef(sk_ref_sp(page));
|
| pdfDest->appendName("XYZ");
|
| SkPoint p = fInitialTransform.mapXY(dest.point.x(), dest.point.y());
|
| pdfDest->appendScalar(p.x());
|
|
|