1
0
mirror of synced 2024-11-28 09:30:51 +01:00

Fixed plugin unloading segfault

This commit is contained in:
WerWolv 2021-01-12 16:56:14 +01:00
parent 84a6fff034
commit 8ae15abb85
2 changed files with 2 additions and 2 deletions

View File

@ -49,10 +49,8 @@ int main(int argc, char **argv) {
hex::View::postEvent(hex::Events::FileDropped, argv[1]);
window.initPlugins();
window.loop();
window.deinitPlugins();
return EXIT_SUCCESS;
}

View File

@ -65,6 +65,8 @@ namespace hex {
for (auto &view : ContentRegistry::Views::getEntries())
delete view;
ContentRegistry::Views::getEntries().clear();
this->deinitPlugins();
}
void Window::loop() {