Release the list of large objects once load() has built the indexes

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann committed 2026-10-11 10:28:50 +02:00
1 parent a84eed66a4
commit 1d919418b0
2 files changed
+27

No files matched your search

+1
View File
@@ -738,6 +738,7 @@ inline void load_image(document_data& d, const std::uint8_t* image, std::size_t
}
}
build_object_indexes(d);
std::vector<std::uint32_t>().swap(d.large_objects); // (only needed while building)
d.discarded = false;
}