Skip to content

Memory leak fix #99

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

Merged
merged 1 commit into from
May 12, 2024
Merged

Memory leak fix #99

merged 1 commit into from
May 12, 2024

Conversation

CuriousTama
Copy link
Contributor

A lot of missing dispose();

A lot of missing dispose();
@CuriousTama
Copy link
Contributor Author

  • A lot of calls to clangSharp structs needed to be disposed.
  • Spans can't be stored, if we disposeTokens() on a copy there is an exception.

Do not hesitate to rename things if it doesn't please you.

I tried to be compatible with 0.14.0 and lower but I gave up, spans are not fully integrated in .NetStandard and have a hard time with disposeTokens().

All tests seams to pass and personal tests too, here some screen-shots of ~6min

Current 0.16.0 version :
2024-05-05 15_06_56-Window

Current 0.16.0 version + changes :
2024-05-05 14_57_27-Window

Theses were parsing a quite complex file with includes and heavy std includes

@xoofx
Copy link
Owner

xoofx commented May 10, 2024

Thanks! I'm off for the few days but will get back to this PR next week

@xoofx xoofx merged commit 1f9e3c0 into xoofx:main May 12, 2024
@xoofx
Copy link
Owner

xoofx commented May 12, 2024

Thanks a lot, I can see that it was indeed quite some work! 👍

@xoofx xoofx added the bug Something isn't working label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants