mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
No need to delete window in Destory
The native window is now automatically deleted after it gets closed.
This commit is contained in:
@@ -223,10 +223,8 @@ bool Window::IsDestroyed() const {
|
||||
}
|
||||
|
||||
void Window::Destroy() {
|
||||
if (window_) {
|
||||
if (window_)
|
||||
window_->CloseContents(nullptr);
|
||||
window_.reset();
|
||||
}
|
||||
}
|
||||
|
||||
void Window::Close() {
|
||||
|
||||
Reference in New Issue
Block a user