Change ComposeViewController.xcbSession to be weak
This commit is contained in:
parent
e4fc6d36ca
commit
c7f82f7796
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue