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 weak references #50

Merged
merged 7 commits into from
May 1, 2024
Merged

Fix weak references #50

merged 7 commits into from
May 1, 2024

Conversation

Victorious3
Copy link
Contributor

This fixes a long standing issue with weak_ref where they were pointing into freed memory when the last owning ref was cleaned up. Now the reference count is ref counted (works like C++ weak_ptr) and you get null if the owning reference get cleaned up.

@Victorious3 Victorious3 linked an issue May 1, 2024 that may be closed by this pull request
@Victorious3 Victorious3 merged commit cf0b819 into master May 1, 2024
2 checks passed
@Victorious3 Victorious3 deleted the weak_ref branch May 1, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make weak references safe
1 participant