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

Remove XML::Error.errors #14936

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

straight-shoota
Copy link
Member

@straight-shoota straight-shoota commented Aug 23, 2024

Resolves #14934

XML::Error.errors collects all error messages from libxml2. Using it is deprecated, but without any calls to it, the error array is never cleared. So we're dropping it because it cannot be fixed. The new error mechanism based on XML::Reader#errors is better in every regard.

Closes #14966

@straight-shoota
Copy link
Member Author

src/xml/error.cr Show resolved Hide resolved
src/xml/error.cr Outdated Show resolved Hide resolved
Co-authored-by: Beta Ziliani <beta@manas.tech>
@straight-shoota straight-shoota added this to the 1.14.0 milestone Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XML::Error.errors leaks memory
3 participants