Fix double window destroy.

This commit is contained in:
Ben Vanik 2015-09-07 09:41:44 -07:00
parent fa9c681c7c
commit 3ac83b16c8
1 changed files with 4 additions and 0 deletions

View File

@ -157,6 +157,10 @@ void Window::OnClose() {
}
void Window::OnDestroy() {
if (!context_) {
return;
}
if (--elemental_initialization_count_ == 0) {
el::Shutdown();
}