}
impl_->contexts_.clear();
impl_->factory_map_.clear();
- impl_->handler_->UnsetEvents();
+
AppCoreBase::Dispose();
- impl_->handler_->Fini();
+ if (impl_->handler_.get() != nullptr) {
+ impl_->handler_->UnsetEvents();
+ impl_->handler_->Fini();
+ }
}
int AppCoreMultiWindowBase::OnCreate() {