No need to delete window in Destory
The native window is now automatically deleted after it gets closed.
This commit is contained in:
parent
e3c64d7971
commit
e73c655d65
1 changed files with 1 additions and 3 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue