mirror of
https://github.com/nlohmann/json.git
synced 2026-10-10 16:37:14 +00:00
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:
2 files changed
+27
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user