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 delegates to prevent leaks #37

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

Conversation

gbuela
Copy link

@gbuela gbuela commented Nov 28, 2021

Strong delegate references are creating reference cycles. This isn't noticeable with the Example app because there's a single view controller. But if you'd use Pikko in a VC that was presented as modal or pushed into a navigation stack, the memory debugger would show that instances of the VC, Pikko, HueView and BrightnessSaturationView never go away due to the cycle created by the delegates.

@Alipacman
Copy link

I also noticed this, thanks!

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.

2 participants