Skip to content

Conversation

@just1103
Copy link
Contributor

@just1103 just1103 commented Feb 10, 2024

Fixed a memory leak with PassthroughRelay as described in this issue #167.

It appears that PassthroughRelay fails to release its subscriptions upon receiving completion, as similarly described in this PR #85.

I've confirmed the disappearance of the retain cycle with this solution in my project, but I'm not fully proficient with Combine. So, Any comments or suggestions would be greatly appreciated.

@just1103
Copy link
Contributor Author

Hello @freak4pc
Could you please review this PR?

just1103 and others added 2 commits January 20, 2026 20:55
- Test subscription release with different initialization orders
- Test withLatestFrom operator scenarios
- Mirrors test coverage from CurrentValueRelay (PR CombineCommunity#137)
- Verifies fix for issue CombineCommunity#167
@freak4pc freak4pc closed this Jan 20, 2026
@freak4pc freak4pc reopened this Jan 20, 2026
@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

❌ Patch coverage is 90.29851% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.30%. Comparing base (d7b896f) to head (7dbb166).
⚠️ Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
Tests/PassthroughRelayTests.swift 90.15% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #168      +/-   ##
==========================================
+ Coverage   95.47%   97.30%   +1.82%     
==========================================
  Files          72       73       +1     
  Lines        4284     4742     +458     
==========================================
+ Hits         4090     4614     +524     
+ Misses        194      128      -66     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@freak4pc freak4pc closed this Jan 20, 2026
@freak4pc freak4pc reopened this Jan 20, 2026
@freak4pc freak4pc enabled auto-merge (rebase) January 20, 2026 19:15
@freak4pc freak4pc disabled auto-merge January 20, 2026 19:15
@freak4pc freak4pc merged commit 96a7610 into CombineCommunity:main Jan 20, 2026
11 of 12 checks passed
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

Successfully merging this pull request may close these issues.

2 participants