winemac: Remove a window from the NSWorkspace notification center when it's deallocated.

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.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Ken Thomases 2015-11-30 14:34:59 -06:00 committed by Alexandre Julliard
parent b07ebe6815
commit ebcf8aadc5
1 changed files with 1 additions and 0 deletions

View File

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