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

Potential retain cycle #1

Open
joanromano opened this issue Apr 17, 2014 · 0 comments
Open

Potential retain cycle #1

joanromano opened this issue Apr 17, 2014 · 0 comments
Labels

Comments

@joanromano
Copy link
Owner

RAC(self, contentSnapshotView.center) = [beganOrChangedSignal map:^id(id value) {
        return [NSValue valueWithCGPoint:[self centerPointForTranslation:[panGesture translationInView:self]]];
    }];

Referring to self within the map: block could lead to a cycle here. Refer to RAC documentation for more details:

https://github.com/ReactiveCocoa/ReactiveCocoa/blob/master/Documentation/MemoryManagement.md#signals-derived-from-self

@joanromano joanromano added the bug label Apr 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant