diff --git a/single_include/nlohmann/json_view.hpp b/single_include/nlohmann/json_view.hpp index 080073d21..e615ca131 100644 --- a/single_include/nlohmann/json_view.hpp +++ b/single_include/nlohmann/json_view.hpp @@ -5075,6 +5075,7 @@ inline void load_image(document_data& d, const std::uint8_t* image, std::size_t } } build_object_indexes(d); + std::vector().swap(d.large_objects); // (only needed while building) d.discarded = false; }