mirror of https://github.com/WerWolv/ImHex.git
fix: Occasional crash when loading a provider
This commit is contained in:
parent
4fb544d59d
commit
b702ad4190
|
@ -765,7 +765,8 @@ namespace hex::plugin::builtin {
|
|||
}
|
||||
|
||||
std::scoped_lock lock(data.runtimeMutex);
|
||||
auto &runtime = data.runtime;
|
||||
auto runtime = std::make_unique<pl::PatternLanguage>();
|
||||
ContentRegistry::PatternLanguage::configureRuntime(*runtime, provider);
|
||||
|
||||
auto mimeType = magic::getMIMEType(provider);
|
||||
|
||||
|
|
Loading…
Reference in New Issue