Making shutdown clean.

This commit is contained in:
Ben Vanik
2015-07-25 12:56:37 -07:00
parent 89adaf8e85
commit abf50b477e
4 changed files with 12 additions and 12 deletions

View File

@@ -137,10 +137,7 @@ void Win32Window::EnableMMCSS() {
FreeLibrary(hLibrary);
}
void Win32Window::OnDestroy() {
super::OnDestroy();
hwnd_ = nullptr;
}
void Win32Window::OnDestroy() { super::OnDestroy(); }
void Win32Window::OnClose() {
if (!closing_ && hwnd_) {