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 string memory leak #1634

Merged
merged 1 commit into from Dec 7, 2023

Conversation

ealmloff
Copy link
Member

Fixes a memory leak caused by allocating a string in the bump allocator. The string needs to have it's drop handler called to be dropped to drop the memory but bump allocators do not drop objects allocated in them. Instead this PR changes the bump allocator to copy the &str out of the string

@ealmloff ealmloff added bug Something isn't working core relating to the core implementation of the virtualdom labels Nov 13, 2023
@jkelleyrtp jkelleyrtp merged commit f52233c into DioxusLabs:master Dec 7, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core relating to the core implementation of the virtualdom
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants