sys: Explicitly delete views so destructors get called properly

This commit is contained in:
WerWolv
2021-03-16 22:44:37 +01:00
parent b7dd936dae
commit ef747cc4c0
5 changed files with 12 additions and 8 deletions

View File

@@ -162,6 +162,10 @@ namespace hex {
this->deinitGLFW();
ContentRegistry::Settings::store();
for (auto &view : SharedData::views)
delete view;
SharedData::views.clear();
this->deinitPlugins();
EventManager::unsubscribe(Events::SettingsChanged, this);