Skip to content

Commit

Permalink
MacOS: Fix crash on exit
Browse files Browse the repository at this point in the history
* Fixes #9423
  • Loading branch information
droidmonkey committed Jul 9, 2023
1 parent 190a1fa commit e817c72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/osutils/macutils/AppKitImpl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ - (void) setWindowSecurity:(NSWindow*) window state:(bool) state
{
[[[NSWorkspace sharedWorkspace] notificationCenter] removeObserver:static_cast<id>(self)];
[[NSDistributedNotificationCenter defaultCenter] removeObserver:static_cast<id>(self)];
[NSApp removeObserver:static_cast<id>(self) forKeyPath:@"effectiveAppearance"];
[static_cast<id>(self) dealloc];
}

Expand Down

0 comments on commit e817c72

Please sign in to comment.