-
Notifications
You must be signed in to change notification settings - Fork 30
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
Memory Leak #2
Comments
Forget what I wrote. I misunderstood the difference between JRMFloatingAnimationView and JRMFloatingImageView. |
Actually to solve the issue this change should be made: There are numerous blocks inside JRMFloatingImageView that keep a strong reference to You should use: There is no harm in doing that anyway. |
since I didn't want to interfere with your code (cocoapods), I had to subclass. Here is my modifications that may be helpful for eccentric use cases: It would be good if you could implement these changes so I can get rid of my subclass. I also couldn't access some stuff so I had to use a work around: Header: |
@pjebs Were you experiencing an EXC_BAD_ACCESS crash? Setting the delegate to |
@pjebs This is fixed in version 0.1.1. |
I don't know if this project is still alive but I still have this issue :) FloatingImageView does not remove itself from JRMFloatingAnimationView upon animation completion. They just still there, and if I add new ones, they are collected until app runs out of memory. |
Was able to solve my problem by changing |
the issue is if the view controller disappears, If only there was the option to stop() animation it would have been the way to stop the leak. |
if I have
removeOnCompletion=true
,when the animation finishes it does remove itself from the superview but something else is holding a strong reference to JRMFloatingAnimationView hence it never deallocates.
Perhaps (not tested) the FloatingImageView deallocs but not the AnimationView.
The text was updated successfully, but these errors were encountered: