Skip to content

Commit 7ada9b1

Browse files
committed
retain cycle debug
added weak to presenter on interator
1 parent d77989a commit 7ada9b1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ICTMDBDetailModule/DetailInteractor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import ICTMDBNetworkManagerKit
1010
final class TvShowDetailInteractor : @preconcurrency PresenterToInteractorTvShowDetailProtocol {
1111

1212

13-
var presenter: (any InteractorToPresenterTvShowDetailProtocol)?
13+
weak var presenter: (any InteractorToPresenterTvShowDetailProtocol)?
1414

1515
private let network : NetworkManagerProtocol
1616

ICTMDBDetailModule/DetailProtocols.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ enum TvShowInteractorResult {
4646
case sendError(_ error:TvShowErrorType)
4747
}
4848

49-
protocol InteractorToPresenterTvShowDetailProtocol {
49+
protocol InteractorToPresenterTvShowDetailProtocol : AnyObject {
5050
func onHandle(handle:TvShowInteractorResult)
5151

5252
}

0 commit comments

Comments
 (0)