Skip to content

Commit

Permalink
RETAIN CYCLE
Browse files Browse the repository at this point in the history
  • Loading branch information
Le0nX committed Feb 14, 2020
1 parent e1d67fe commit 30ff700
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WeakReference/WeakReference.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
148DABF423F678DB00B3BB98 /* WeakReference */ = {
isa = PBXGroup;
children = (
148DABF723F678DB00B3BB98 /* SceneDelegate.swift */,
148DAC0C23F6831F00B3BB98 /* Business */,
148DAC0B23F6831300B3BB98 /* Presentation */,
148DAC0A23F682C800B3BB98 /* Resources */,
Expand All @@ -83,7 +84,6 @@
children = (
148DABF523F678DB00B3BB98 /* AppDelegate.swift */,
148DAC0023F678E000B3BB98 /* LaunchScreen.storyboard */,
148DABF723F678DB00B3BB98 /* SceneDelegate.swift */,
148DABFE23F678E000B3BB98 /* Assets.xcassets */,
);
path = Resources;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
if let windowScene = scene as? UIWindowScene {

if let vc = window?.rootViewController as? CurrencyViewController {
let presenter = CurrencyPresenter(output: vc)
let presenter = CurrencyPresenter(output: vc) // Утечка памяти
let currencyUpdater = CurrencyUpdater(output: presenter)
vc.updateCurrency = currencyUpdater.update
}
Expand Down

0 comments on commit 30ff700

Please sign in to comment.