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

String can cause double free bug #847

Closed
badcel opened this issue Apr 5, 2023 · 0 comments · Fixed by #848
Closed

String can cause double free bug #847

badcel opened this issue Apr 5, 2023 · 0 comments · Fixed by #848
Labels
bug Something isn't working
Milestone

Comments

@badcel
Copy link
Member

badcel commented Apr 5, 2023

I think the current implementation of string conversion to native has a double free bug for methods like: https://docs.gtk.org/gtk4/method.StringList.take.html

The StringList takes ownership and is responsible for freeing. Currently we just generate an owned handle which would be freed by us and by GTK.

@badcel badcel added the bug Something isn't working label Apr 5, 2023
@badcel badcel added this to the 0.4.0 milestone Apr 5, 2023
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 a pull request may close this issue.

1 participant