Skip to content

weak self dance to avoid retain loop #68

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Apr 30, 2024
Merged

weak self dance to avoid retain loop #68

merged 1 commit into from
Apr 30, 2024

Conversation

heckj
Copy link
Collaborator

@heckj heckj commented Apr 30, 2024

adding [weak self] to observation closure to avoid a retain loop that would otherwise cause memory leaks

@heckj heckj self-assigned this Apr 30, 2024
@heckj heckj merged commit 6055bf2 into main Apr 30, 2024
@heckj heckj deleted the weakself branch April 30, 2024 23:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant