pop the root node after readValue()

This commit is contained in:
lilinchao 2019-07-02 20:28:30 +08:00 committed by Jordan Bayles
parent 3c32dca892
commit 60ba071aac

View File

@ -1048,6 +1048,7 @@ bool OurReader::parse(const char* beginDoc,
nodes_.push(&root);
bool successful = readValue();
nodes_.pop();
Token token;
skipCommentTokens(token);
if (features_.failIfExtra_) {