}
void Runtime::Close() {
+ if (window_) {
+ window_->Close();
+ return;
+ }
+ // Runtime should not free itself on Close but be owned
+ // by Application.
delete this;
}
}
void Runtime::OnWindowDestroyed() {
- Close();
+ // Runtime should not free itself on Close but be owned
+ // by Application.
+ delete this;
}
void Runtime::RequestMediaAccessPermission(