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

PINCachedAnimatedImage: Fix retain cycles #546

Merged
merged 4 commits into from
Mar 10, 2020

Conversation

bolsinga
Copy link
Contributor

@bolsinga bolsinga commented Mar 10, 2020

  • Use NSNotificationCenter selector based observation.
  • Remove retain cycles when dispatching async to PINOperation and dispatch_async
  • Use internal methods since this code uses lots of ivars, which have implicit self references that are hard to find.
  • Add test that fails without this fix.

- Use NSNotificationCenter selector based observation.
- Remove retain cycles when dispatching async to `PINOperation` and `dispatch_async`
- Use internal methods since this code uses lots of ivars, which have implicity `self` references that are hard to find.
- Add test that fails without this fix.
@bolsinga bolsinga changed the title PINCachedaAnimatedImage: Fix retain cycles PINCachedAnimatedImage: Fix retain cycles Mar 10, 2020
@jparise jparise merged commit ec00404 into master Mar 10, 2020
@jparise jparise deleted the PINCachedaAnimatedImage-Cycles branch March 10, 2020 22:55
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.

None yet

3 participants