fix: Occasional crash when loading a provider

This commit is contained in:
WerWolv 2023-01-19 16:59:34 +01:00
parent 4fb544d59d
commit b702ad4190
1 changed files with 2 additions and 1 deletions

View File

@ -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);