mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-02-04 19:38:42 -06:00
sys: Explicitly delete views so destructors get called properly
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user