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

Possible retain Cycle? #16

Closed
camovb opened this issue Feb 2, 2015 · 1 comment
Closed

Possible retain Cycle? #16

camovb opened this issue Feb 2, 2015 · 1 comment

Comments

@camovb
Copy link

camovb commented Feb 2, 2015

Hi!,

Please correct me if I'm wrong.

I'm looking at your SpringButton:

lazy private var spring : Spring = Spring(self)

and the Spring:

    private var view : Springable

    init(_ view: Springable) {
        self.view = view
    }

Won't this be a retain cycle, preventing to release the button from memory?

@jamztang
Copy link
Contributor

jamztang commented Feb 8, 2015

Thanks! Merged.

@jamztang jamztang closed this as completed Feb 8, 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

No branches or pull requests

2 participants