Change ComposeViewController.xcbSession to be weak
This commit is contained in:
parent
7af64f8e5a
commit
6c3ae9ab14
|
@ -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