No need to delete window in Destory

The native window is now automatically deleted after it gets closed.
This commit is contained in:
Cheng Zhao 2015-09-17 11:32:19 +08:00
parent e3c64d7971
commit e73c655d65

View file

@ -223,10 +223,8 @@ bool Window::IsDestroyed() const {
} }
void Window::Destroy() { void Window::Destroy() {
if (window_) { if (window_)
window_->CloseContents(nullptr); window_->CloseContents(nullptr);
window_.reset();
}
} }
void Window::Close() { void Window::Close() {