diff --git a/Tusker/Screens/Compose/ComposeViewController.swift b/Tusker/Screens/Compose/ComposeViewController.swift index a3eb3c85..b33547d2 100644 --- a/Tusker/Screens/Compose/ComposeViewController.swift +++ b/Tusker/Screens/Compose/ComposeViewController.swift @@ -50,7 +50,8 @@ class ComposeViewController: UIViewController { var mentioningAcct: String? var text: String? - var xcbSession: XCBSession? + // Weak so that if a new session is initiated (i.e. XCBManager.currentSession is changed) while the current one is in progress, this one will be released + weak var xcbSession: XCBSession? var contentWarning = false { didSet {