Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PathBuffer::clear not clearing its path list #904

Merged
merged 2 commits into from
May 15, 2024
Merged

Conversation

manpat
Copy link
Contributor

@manpat manpat commented May 11, 2024

Found this while trying to cache a PathBuffer for reuse.

Without this change, clearing will leave PathBuffer in an invalid state, with paths containing stale indices. Any subsequent paths added will either reference incorrect points and verbs or panic trying to reach out of bounds.

Or in my case panic when the paths I'm building change shape.

@nical
Copy link
Owner

nical commented May 14, 2024

Woops, thanks!

@nical nical merged commit c65b5da into nical:main May 15, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants