mac: Clean delegate before releasing window
This commit is contained in:
parent
b75dc9b08d
commit
dbfa9b5660
1 changed files with 1 additions and 1 deletions
|
@ -68,6 +68,7 @@ using namespace brightray;
|
|||
[devtools_window_ makeKeyAndOrderFront:nil];
|
||||
} else {
|
||||
[[self window] makeKeyAndOrderFront:nil];
|
||||
[devtools_window_ setDelegate:nil];
|
||||
[devtools_window_ close];
|
||||
devtools_window_.reset();
|
||||
}
|
||||
|
@ -146,7 +147,6 @@ using namespace brightray;
|
|||
#pragma mark - NSWindowDelegate
|
||||
|
||||
- (void)windowWillClose:(NSNotification*)notification {
|
||||
[devtools_window_ setDelegate:nil];
|
||||
inspectableWebContentsView_->inspectable_web_contents()->CloseDevTools();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue