CombineCocoa icon indicating copy to clipboard operation
CombineCocoa copied to clipboard

Memory Leaks in TapPublisher

Open DispoKen opened this issue 3 years ago • 3 comments

Describe the bug We seems to be getting memory leaks with TapPublisher.

To Reproduce Steps to reproduce the behavior: Add a tapPublisher on a tapRecognizer Expected behavior No Memory Leaks

Screenshots

Screen Shot 2022-03-03 at 9 27 13 PM Screen Shot 2022-03-03 at 9 32 38 PM Screen Shot 2022-03-03 at 9 32 47 PM

Device:

  • Device: [e.g. iPhone X]
  • CombineCocoa version 0.4.0

Additional context None

DispoKen avatar Mar 04 '22 05:03 DispoKen

I have encountered this (or very similar) issue as well. There are lots of _UIBarButtonItems who seem to have a strong reference to UITapGestureRecognizer. The key thing is that the issue appears even when not using the library. If I just add CombineCocoa as a dependency in Cocoapods, the leaks happen. If I remove the dependency from Cocoapods, the leaks are gone.

kkizlaitis avatar Mar 15 '22 07:03 kkizlaitis

Can you please drop a reproducible project here? Thanks!

freak4pc avatar Mar 26 '22 21:03 freak4pc

Any updates for this?

brannpark avatar Sep 04 '23 01:09 brannpark