fix: Crash when closing ImHex with one or more view providers open

This commit is contained in:
WerWolv
2025-02-04 09:35:26 +01:00
parent 99a2dee7a2
commit b55c40523f

View File

@@ -54,6 +54,7 @@ namespace hex::plugin::builtin {
EventProviderClosing::subscribe(this, [this](const prv::Provider *provider, bool*) {
if (m_provider == provider)
ImHexApi::Provider::remove(this, false);
m_provider = nullptr;
});
return true;