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: Use StrongPtr::retain on class methods #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

siketyan
Copy link
Contributor

@siketyan siketyan commented Apr 2, 2023

Resolves #4

I am not good at Objective-C and/or macOS things, so I do not know this is the correct resolution of this issue. However I confirmed this works without occurring any segmentation faults.

@suzusuzu
Copy link
Owner

Thanks for the bug fix. However, we would appreciate it if you could wait for a while to merge this fix. We would probably prefer to eliminate the autorelease object and solve everything with runtime::objc_release by Drop Trait.

@siketyan
Copy link
Contributor Author

@suzusuzu Thank you for the investigation. If this pull request resolves the issue not in a good way, feel free to close and supersede it. Thank you.

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.

NSArray and VZMACAddress causes segmentation fault after dropped
2 participants