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-09 18:04:16 +02:00
1 parent 463080531e
commit 9ef48f8152
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;
}