AppDelegate // Dealloc the fsStreamHelper when App terminates.

This commit is contained in:
ShikiSuen 2022-02-02 01:23:09 +08:00
parent b8be76bc07
commit 5465deba7c
1 changed files with 2 additions and 1 deletions

View File

@ -137,7 +137,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, NonModalAlertWindowControlle
} }
} }
} }
@IBOutlet weak var window: NSWindow? @IBOutlet weak var window: NSWindow?
private var preferencesWindowController: PreferencesWindowController? private var preferencesWindowController: PreferencesWindowController?
@ -152,6 +151,8 @@ class AppDelegate: NSObject, NSApplicationDelegate, NonModalAlertWindowControlle
aboutWindowController = nil aboutWindowController = nil
checkTask = nil checkTask = nil
updateNextStepURL = nil updateNextStepURL = nil
fsStreamHelper.stop()
fsStreamHelper.delegate = nil
} }
func applicationDidFinishLaunching(_ notification: Notification) { func applicationDidFinishLaunching(_ notification: Notification) {