sys: Properly delete data provider on exit
This commit is contained in:
parent
f2f6dd2219
commit
2326e090af
@ -229,7 +229,6 @@ namespace hex {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::EndChild();
|
ImGui::EndChild();
|
||||||
}
|
}
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
|
@ -54,8 +54,9 @@ namespace hex {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Window::Window(int &argc, char **&argv) {
|
Window::Window(int &argc, char **&argv) {
|
||||||
hex::SharedData::mainArgc = argc;
|
SharedData::mainArgc = argc;
|
||||||
hex::SharedData::mainArgv = argv;
|
SharedData::mainArgv = argv;
|
||||||
|
SharedData::currentProvider = nullptr;
|
||||||
|
|
||||||
this->createDirectories();
|
this->createDirectories();
|
||||||
this->initGLFW();
|
this->initGLFW();
|
||||||
@ -155,6 +156,8 @@ namespace hex {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Window::~Window() {
|
Window::~Window() {
|
||||||
|
delete SharedData::currentProvider;
|
||||||
|
|
||||||
this->deinitImGui();
|
this->deinitImGui();
|
||||||
this->deinitGLFW();
|
this->deinitGLFW();
|
||||||
ContentRegistry::Settings::store();
|
ContentRegistry::Settings::store();
|
||||||
|
Loading…
Reference in New Issue
Block a user