Fixed plugin unloading segfault
This commit is contained in:
parent
84a6fff034
commit
8ae15abb85
@ -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;
|
||||
}
|
||||
|
@ -65,6 +65,8 @@ namespace hex {
|
||||
for (auto &view : ContentRegistry::Views::getEntries())
|
||||
delete view;
|
||||
ContentRegistry::Views::getEntries().clear();
|
||||
|
||||
this->deinitPlugins();
|
||||
}
|
||||
|
||||
void Window::loop() {
|
||||
|
Loading…
Reference in New Issue
Block a user