1
0
mirror of synced 2024-11-24 15:50:16 +01:00

sys: Properly delete data provider on exit

This commit is contained in:
WerWolv 2021-03-09 19:32:04 +01:00
parent f2f6dd2219
commit 2326e090af
2 changed files with 5 additions and 3 deletions

View File

@ -229,7 +229,6 @@ namespace hex {
}
}
ImGui::EndChild();
}
ImGui::End();

View File

@ -54,8 +54,9 @@ namespace hex {
}
Window::Window(int &argc, char **&argv) {
hex::SharedData::mainArgc = argc;
hex::SharedData::mainArgv = argv;
SharedData::mainArgc = argc;
SharedData::mainArgv = argv;
SharedData::currentProvider = nullptr;
this->createDirectories();
this->initGLFW();
@ -155,6 +156,8 @@ namespace hex {
}
Window::~Window() {
delete SharedData::currentProvider;
this->deinitImGui();
this->deinitGLFW();
ContentRegistry::Settings::store();