Index: src/pdf/SkPDFDocument.cpp |
diff --git a/src/pdf/SkPDFDocument.cpp b/src/pdf/SkPDFDocument.cpp |
index 2b7eda1307fd574a3bc9cbd07eeb7788ab119bc7..95857c18469805a66102a03b76c5a270f0134461 100644 |
--- a/src/pdf/SkPDFDocument.cpp |
+++ b/src/pdf/SkPDFDocument.cpp |
@@ -320,8 +320,7 @@ static sk_sp<SkData> SkSrgbIcm() { |
} |
static sk_sp<SkPDFStream> make_srgb_color_profile() { |
- sk_sp<SkData> profile = SkSrgbIcm(); |
- sk_sp<SkPDFStream> stream = sk_make_sp<SkPDFStream>(profile.get()); |
+ sk_sp<SkPDFStream> stream = sk_make_sp<SkPDFStream>(SkSrgbIcm()); |
stream->insertInt("N", 3); |
sk_sp<SkPDFArray> array = sk_make_sp<SkPDFArray>(); |
array->appendScalar(0.0f); |