Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/json.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,7 @@ json::iterator json::find(const char* key)
{
json::iterator result(this);
delete result.oi_;
result.oi_ = nullptr;
result.oi_ = new object_t::iterator(i);
return result;
}
Expand All @@ -1215,6 +1216,7 @@ json::const_iterator json::find(const char* key) const
{
json::const_iterator result(this);
delete result.oi_;
result.oi_ = nullptr;
result.oi_ = new object_t::const_iterator(i);
return result;
}
Expand Down