Skip to content

Commit

Permalink
MacOS: Fix crash on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
droidmonkey committed Jul 13, 2023
1 parent 3cf1497 commit 9d72d8d
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 9d72d8d

Please sign in to comment.