winemac: Clear latent parent on window close to break potential retain cycle.

This commit is contained in:
Ken Thomases 2013-08-30 00:00:51 -05:00 committed by Alexandre Julliard
parent 512237ebe6
commit 029bcf97dd
1 changed files with 5 additions and 0 deletions

View File

@ -1392,6 +1392,11 @@ - (BOOL)windowShouldClose:(id)sender
return NO;
}
- (void) windowWillClose:(NSNotification*)notification
{
self.latentParentWindow = nil;
}
- (void)windowWillMiniaturize:(NSNotification *)notification
{
if (!ignore_windowMiniaturize)