Change ComposeViewController.xcbSession to be weak

This commit is contained in:
Shadowfacts 2018-09-23 18:45:56 -04:00
parent e4fc6d36ca
commit c7f82f7796
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ class ComposeViewController: UIViewController {
var mentioningAcct: String? var mentioningAcct: String?
var text: 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 { var contentWarning = false {
didSet { didSet {