Commit ebcf8aad authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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

It was added as an observer in commit 3beec95a. Failing to remove it caused the notification center to have a dangling pointer and caused crashes and hangs. Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent b07ebe68
......@@ -777,6 +777,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
- (void) dealloc
{
[[[NSWorkspace sharedWorkspace] notificationCenter] removeObserver:self];
[[NSNotificationCenter defaultCenter] removeObserver:self];
[queue release];
[latentChildWindows release];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment