summaryrefslogtreecommitdiff
path: root/chromium/third_party/pdfium/core/fpdfapi/parser/cpdf_object_stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/pdfium/core/fpdfapi/parser/cpdf_object_stream.cpp')
-rw-r--r--chromium/third_party/pdfium/core/fpdfapi/parser/cpdf_object_stream.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/chromium/third_party/pdfium/core/fpdfapi/parser/cpdf_object_stream.cpp b/chromium/third_party/pdfium/core/fpdfapi/parser/cpdf_object_stream.cpp
index 2a896b8eb50..3f974ee72fd 100644
--- a/chromium/third_party/pdfium/core/fpdfapi/parser/cpdf_object_stream.cpp
+++ b/chromium/third_party/pdfium/core/fpdfapi/parser/cpdf_object_stream.cpp
@@ -97,9 +97,8 @@ void CPDF_ObjectStream::Init(const CPDF_Stream* stream) {
auto stream_acc = pdfium::MakeRetain<CPDF_StreamAcc>(stream);
stream_acc->LoadAllDataFiltered();
const uint32_t data_size = stream_acc->GetSize();
- data_ = stream_acc->DetachData();
data_stream_ = pdfium::MakeRetain<CFX_ReadOnlyMemoryStream>(
- pdfium::make_span(data_.get(), data_size));
+ stream_acc->DetachData(), data_size);
}
CPDF_SyntaxParser syntax(data_stream_);