Memory leaks in Combine pipelines can occur when subscriptions are stored in a global store without being cancelled on view disappear. The pipelines keep strong references alive, preventing deallocation. The fix is tying every subscription's lifecycle to the view's lifecycle rather than using global stores, ensuring subscriptions are cancelled when views disappear.

1m watch time

Sort: