Index: src/pdf/SkPDFDocument.cpp |
diff --git a/src/pdf/SkPDFDocument.cpp b/src/pdf/SkPDFDocument.cpp |
index bacd9eccc74be336a47c086a582f9020cf113f9e..4895dc5a7426e399412be17c6ba00fe4686e2389 100644 |
--- a/src/pdf/SkPDFDocument.cpp |
+++ b/src/pdf/SkPDFDocument.cpp |
@@ -399,6 +399,6 @@ SkDocument* SkDocument::CreatePDF(const char path[], SkScalar dpi) { |
auto delete_wstream = [](SkWStream* stream, bool) { delete stream; }; |
SkAutoTDelete<SkFILEWStream> stream(new SkFILEWStream(path)); |
return stream->isValid() |
- ? SkPDFMakeDocument(stream.detach(), delete_wstream, dpi, nullptr).release() |
+ ? SkPDFMakeDocument(stream.release(), delete_wstream, dpi, nullptr).release() |
: nullptr; |
} |