mac: Clean delegate after closing window

This commit is contained in:
Cheng Zhao 2014-11-03 21:46:59 +08:00
parent 74025ee985
commit 92244500c6

View file

@ -145,6 +145,7 @@ using namespace brightray;
#pragma mark - NSWindowDelegate
- (void)windowWillClose:(NSNotification*)notification {
[devtools_window_ setDelegate:nil];
inspectableWebContentsView_->inspectable_web_contents()->CloseDevTools();
}