cefclient: macOS: Fix crash during shutdown from full-screen (issue #2158)

This commit is contained in:
Marshall Greenblatt 2017-04-26 15:17:49 -04:00
parent a5f63034f9
commit 27a32dbe03
1 changed files with 4 additions and 0 deletions

View File

@ -197,6 +197,10 @@
// Deletes itself. // Deletes itself.
- (void)cleanup:(id)window { - (void)cleanup:(id)window {
root_window_->WindowDestroyed(); root_window_->WindowDestroyed();
// Don't want any more delegate callbacks after we destroy ourselves.
[window setDelegate:nil];
[self release]; [self release];
} }