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

Bring back Unref methods #108

Open
diamondburned opened this issue May 11, 2023 · 0 comments
Open

Bring back Unref methods #108

diamondburned opened this issue May 11, 2023 · 0 comments
Labels
bug Changes to fix bugs that do not require refactoring enhancement New feature or request

Comments

@diamondburned
Copy link
Owner

Unref methods should definitely be restored as a workaround for gotk4's incomplete automatic memory management. It's probably the most straightforward way for applications to fix memory leak issues.

Ideally, when calling Unref, we should clean up all of the internal automatic object tracking. We should at least:

  • Delete all callbacks off the registry,
  • Delete the interned object itself off the registry, and
  • Delete all finalizers attached to the interned object.
@diamondburned diamondburned added enhancement New feature or request bug Changes to fix bugs that do not require refactoring labels May 11, 2023
@diamondburned diamondburned pinned this issue May 11, 2023
@diamondburned diamondburned unpinned this issue Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Changes to fix bugs that do not require refactoring enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant