fix: Crash on exit
This commit is contained in:
parent
dd9a2e1818
commit
179a65ed8b
@ -167,6 +167,10 @@ namespace hex::crash {
|
||||
HANDLE_SIGNAL(SIGABRT);
|
||||
HANDLE_SIGNAL(SIGFPE);
|
||||
|
||||
#if defined (SIGBUS)
|
||||
HANDLE_SIGNAL(SIGBUS);
|
||||
#endif
|
||||
|
||||
#undef HANDLE_SIGNAL
|
||||
}
|
||||
|
||||
|
@ -67,11 +67,12 @@ namespace hex::init {
|
||||
EventImHexClosing::post();
|
||||
EventManager::clear();
|
||||
|
||||
while (ImHexApi::Provider::isValid())
|
||||
ImHexApi::Provider::remove(ImHexApi::Provider::get());
|
||||
|
||||
// Terminate all asynchronous tasks
|
||||
TaskManager::exit();
|
||||
|
||||
while (ImHexApi::Provider::isValid())
|
||||
ImHexApi::Provider::remove(ImHexApi::Provider::get());
|
||||
ContentRegistry::Provider::impl::getEntries().clear();
|
||||
|
||||
ImHexApi::System::getInitArguments().clear();
|
||||
|
Loading…
Reference in New Issue
Block a user