From ea482ff0f5e71f75078ced500233fc08d42d18d8 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 11 May 2023 12:01:06 +0200 Subject: [PATCH] fix: Crash when closing providers too quickly --- lib/libimhex/include/hex/providers/provider_data.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libimhex/include/hex/providers/provider_data.hpp b/lib/libimhex/include/hex/providers/provider_data.hpp index 800e6872a..60f8e9af7 100644 --- a/lib/libimhex/include/hex/providers/provider_data.hpp +++ b/lib/libimhex/include/hex/providers/provider_data.hpp @@ -62,7 +62,7 @@ namespace hex { this->m_data.emplace(provider, T()); }); - (void)EventManager::subscribe([this](prv::Provider *provider){ + (void)EventManager::subscribe([this](prv::Provider *provider){ this->m_data.erase(provider); });