Mac: cefclient: Remove duplicated cleanup code

This commit is contained in:
Sergey Markelov 2020-10-15 20:18:20 +00:00 committed by Marshall Greenblatt
parent a1ba0c9166
commit c3aa36323b
1 changed files with 0 additions and 8 deletions

View File

@ -897,14 +897,6 @@ scoped_refptr<RootWindow> RootWindow::GetForNSWindow(NSWindow* window) {
}
}
// Don't want any more delegate callbacks after we destroy ourselves.
window_.delegate = nil;
// Delete the window.
#if !__has_feature(objc_arc)
[window autorelease];
#endif // !__has_feature(objc_arc)
window_ = nil;
// Clean ourselves up after clearing the stack of anything that might have the
// window on it.
[self cleanup];