Ken Thomases : winemac: Clear latent parent on window close to break potential retain cycle.
Alexandre Julliard
julliard at winehq.org
Fri Aug 30 11:00:37 CDT 2013
Module: wine
Branch: master
Commit: 029bcf97ddf5e49f89fffd011c0c3a6f0dcf5462
URL: http://source.winehq.org/git/wine.git/?a=commit;h=029bcf97ddf5e49f89fffd011c0c3a6f0dcf5462
Author: Ken Thomases <ken at codeweavers.com>
Date: Fri Aug 30 00:00:51 2013 -0500
winemac: Clear latent parent on window close to break potential retain cycle.
---
dlls/winemac.drv/cocoa_window.m | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m
index 1762c5b..fdc33de 100644
--- a/dlls/winemac.drv/cocoa_window.m
+++ b/dlls/winemac.drv/cocoa_window.m
@@ -1392,6 +1392,11 @@ static inline void fix_generic_modifiers_by_device(NSUInteger* modifiers)
return NO;
}
+ - (void) windowWillClose:(NSNotification*)notification
+ {
+ self.latentParentWindow = nil;
+ }
+
- (void)windowWillMiniaturize:(NSNotification *)notification
{
if (!ignore_windowMiniaturize)
More information about the wine-cvs
mailing list