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

Memory leak #48

Open
StefaniOSApps opened this issue Nov 28, 2021 · 0 comments
Open

Memory leak #48

StefaniOSApps opened this issue Nov 28, 2021 · 0 comments

Comments

@StefaniOSApps
Copy link

Hi, I used v0.9.0 with RxSwift 6.2 on latest xCode.

i have a memory leak by using:

Observable
   .combineLatest(
      foo1.asObservable(),
      foo2.asObservable()
   )
   .map { string in
      NSMutableAttributedString(string: string)
   }
   .bind(to: rx.animated.fade(duration: 0.1).attributedText)
   .disposed(by: bag)

I can solve this leak with:

Observable
   .combineLatest(
      foo1.asObservable(),
      foo2.asObservable()
   )
   .map { string in
      NSMutableAttributedString(string: string)
   }
   .bind(to: rx.attributedText)
   .disposed(by: bag)

how do you think?

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

1 participant