Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delay breaking out of the parse loop when max_tree_depth is hit
When a token causes a node to be added to the DOM which increases the depth of the DOM to exceed the `max_tree_depth` _and_ the token needs to be reprocessed, memory is leaked. By delaying breaking out of the loop until after the token has been completely handled, this appears to fix the leak. Fixes #3098
- Loading branch information