Index: src/pdf/SkPDFResourceDict.cpp |
diff --git a/src/pdf/SkPDFResourceDict.cpp b/src/pdf/SkPDFResourceDict.cpp |
index c2144223b462ae45e07ea26eefab42b4377be3b0..7891de8006a8f1ec77627b30c817767765ef0b4d 100644 |
--- a/src/pdf/SkPDFResourceDict.cpp |
+++ b/src/pdf/SkPDFResourceDict.cpp |
@@ -64,7 +64,7 @@ static void add_subdict( |
auto resources = sk_make_sp<SkPDFDict>(); |
for (int i = 0; i < resourceList.count(); i++) { |
resources->insertObjRef(SkPDFResourceDict::getResourceName(type, i), |
- sk_sp<SkPDFObject>(SkRef(resourceList[i]))); |
+ sk_ref_sp(resourceList[i])); |
} |
dst->insertObject(get_resource_type_name(type), std::move(resources)); |
} |