From 5465deba7cb41aecd14a96b5ea23b3840de85fd1 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Wed, 2 Feb 2022 01:23:09 +0800 Subject: [PATCH] AppDelegate // Dealloc the fsStreamHelper when App terminates. --- Source/AppDelegate.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/AppDelegate.swift b/Source/AppDelegate.swift index 65552c77..02f4d82a 100644 --- a/Source/AppDelegate.swift +++ b/Source/AppDelegate.swift @@ -137,7 +137,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, NonModalAlertWindowControlle } } } - @IBOutlet weak var window: NSWindow? private var preferencesWindowController: PreferencesWindowController? @@ -152,6 +151,8 @@ class AppDelegate: NSObject, NSApplicationDelegate, NonModalAlertWindowControlle aboutWindowController = nil checkTask = nil updateNextStepURL = nil + fsStreamHelper.stop() + fsStreamHelper.delegate = nil } func applicationDidFinishLaunching(_ notification: Notification) {