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]; }