fix: Invalid iterator dereference when removing providers
This commit is contained in:
parent
e5c003d726
commit
5084009d62
@ -462,7 +462,7 @@ namespace hex {
|
||||
if (s_providers->empty())
|
||||
EventProviderChanged::post(provider, nullptr);
|
||||
|
||||
EventProviderClosed::post(it->get());
|
||||
EventProviderClosed::post(providerToRemove);
|
||||
RequestUpdateWindowTitle::post();
|
||||
|
||||
// Do the destruction of the provider in the background once all tasks have finished
|
||||
|
Loading…
x
Reference in New Issue
Block a user