Skip to content

Commit e73c655

Browse files
committed
No need to delete window in Destory
The native window is now automatically deleted after it gets closed.
1 parent e3c64d7 commit e73c655

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

atom/browser/api/atom_api_window.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,8 @@ bool Window::IsDestroyed() const {
223223
}
224224

225225
void Window::Destroy() {
226-
if (window_) {
226+
if (window_)
227227
window_->CloseContents(nullptr);
228-
window_.reset();
229-
}
230228
}
231229

232230
void Window::Close() {

0 commit comments

Comments
 (0)