mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Set window delegate to nil before we disappear
There are places where we iterate through the delegates of NSApp’s ordered windows. Since the window may stay around longer than it’s (NSWindowController) delegate, we should be sure to set NSWindow’s delegate property to nil.
This commit is contained in:
@@ -112,4 +112,9 @@ static std::multimap<oak::uuid_t, HTMLOutputWindowController*> Windows;
|
||||
[alert beginSheetModalForWindow:self.window modalDelegate:self didEndSelector:@selector(closeWarningDidEnd:returnCode:contextInfo:) contextInfo:NULL];
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
self.window.delegate = nil;
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user