mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-02-08 21:38:40 -06:00
fix: Occasional crash when loading a provider
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user