-
Notifications
You must be signed in to change notification settings - Fork 151
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
Retain cycle in bind(to:input:) #227
Comments
Hi @nflahavan! Thank you for the detailed issue – the unit test is very helpful. Definitely a reference cycle here would be a bug. I would be happy to review a PR, thank you again. |
#228 is available for your review whenever you get a chance! |
Hey @ashfurrow @nflahavan the issue is still not fixed. I'm using the Action version from the master, and still I can detect memory leaks This simple code generates memory leak
|
#235 It's very similar but for button.rx.action case |
Hi, thanks for following up and opening #235. I honestly don't use Action or RxSwift day-to-day anymore, so I don't have a lot of time to devote to fixing bugs like this. I'd be happy to review a pull request, though. I also just noticed that #228 was merged but hasn't been released yet – let's wait until this further retain cycle is fixed and then release a version 4.3.1 👍 |
Like the title says there is a retain cycle in the various
bind(to:input:)
functions. The following test fails:The retain cycle is due to passing
base
toinputTransform
inmap
. This can be fixed by changing the variousbind
methods to the following:With the change above all tests plus the one I added to check for a retain cycle pass. I'd be happy to write up a pull request to make these changes if you agree they need to be made.
P.s. Thanks for the great framework!
The text was updated successfully, but these errors were encountered: