From 1594e5f4e35a66d664049006e99d2d9cc446e932 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Sun, 9 Jul 2023 15:04:14 -0400 Subject: [PATCH] MacOS: Fix crash on exit * Fixes #9423 --- src/gui/osutils/macutils/AppKitImpl.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/osutils/macutils/AppKitImpl.mm b/src/gui/osutils/macutils/AppKitImpl.mm index c700c06d5..fbf4a9d0e 100644 --- a/src/gui/osutils/macutils/AppKitImpl.mm +++ b/src/gui/osutils/macutils/AppKitImpl.mm @@ -243,6 +243,7 @@ AppKit::~AppKit() { [[[NSWorkspace sharedWorkspace] notificationCenter] removeObserver:static_cast(self)]; [[NSDistributedNotificationCenter defaultCenter] removeObserver:static_cast(self)]; + [NSApp removeObserver:static_cast(self) forKeyPath:@"effectiveAppearance"]; [static_cast(self) dealloc]; }