diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index d736077e4..de832dbc6 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -765,7 +765,8 @@ namespace hex::plugin::builtin { } std::scoped_lock lock(data.runtimeMutex); - auto &runtime = data.runtime; + auto runtime = std::make_unique(); + ContentRegistry::PatternLanguage::configureRuntime(*runtime, provider); auto mimeType = magic::getMIMEType(provider);