Skip to content

Change to __weak from __unsafe_unretained to fix crashes during unit … #18

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

msqr
Copy link

@msqr msqr commented Oct 2, 2015

…testing of many threaded HTTP responses in WebApiClient project unit tests. I kept getting crashes from the setHeadersForResponse:error: method, on the line that calls [http.defaultHeaders enumerateKeysAndObjectsUsingBlock:... and I noticed the __unsafe_unretained ivar. Switching to __weak resolved the crashes for me.

…testing of many threaded HTTP responses in WebApiClient project.
msqr added a commit to Blue-Rocket/WebApiClient that referenced this pull request Oct 2, 2015
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.

1 participant