From: Ken Thomases Subject: [PATCH] winemac: Remove a window from the NSWorkspace notification center when it's deallocated. Message-Id: <1448915699-51267-1-git-send-email-ken@codeweavers.com> Date: Mon, 30 Nov 2015 14:34:59 -0600 It was added as an observer in commit 3beec95a0. Failing to remove it caused the notification center to have a dangling pointer and caused crashes and hangs. Fixes . Signed-off-by: Ken Thomases --- dlls/winemac.drv/cocoa_window.m | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m index 75f5605..bcc1cf5 100644 --- a/dlls/winemac.drv/cocoa_window.m +++ b/dlls/winemac.drv/cocoa_window.m @@ -777,6 +777,7 @@ + (WineWindow*) createWindowWithFeatures:(const struct macdrv_window_features*)w - (void) dealloc { + [[[NSWorkspace sharedWorkspace] notificationCenter] removeObserver:self]; [[NSNotificationCenter defaultCenter] removeObserver:self]; [queue release]; [latentChildWindows release]; -- 2.6.0