Change ComposeViewController.xcbSession to be weak

This commit is contained in:
Shadowfacts 2018-09-23 18:45:56 -04:00
parent 7af64f8e5a
commit 6c3ae9ab14
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 2 additions and 1 deletions

View File

@ -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 {