mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
fix: Crash when closing providers too quickly
This commit is contained in:
@@ -322,7 +322,9 @@ namespace hex {
|
||||
provider->close();
|
||||
EventManager::post<EventProviderClosed>(provider);
|
||||
|
||||
delete provider;
|
||||
TaskManager::runWhenTasksFinished([provider] {
|
||||
delete provider;
|
||||
});
|
||||
}
|
||||
|
||||
prv::Provider* createProvider(const std::string &unlocalizedName, bool skipLoadInterface) {
|
||||
|
||||
Reference in New Issue
Block a user