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

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