diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/core.c b/src/core/core.c index 26469ff..626d58b 100644 --- a/src/core/core.c +++ b/src/core/core.c @@ -105,17 +105,18 @@ bool load_all_core_components(bool cs) explorer = g_content_explorer_new(); set_current_content_explorer(explorer); + resolver = g_content_resolver_new(); + set_current_content_resolver(resolver); + #ifdef HAVE_MAGIC_SUPPORT if (result) result = init_magic_cookie(); #endif - resolver = g_content_resolver_new(); - set_current_content_resolver(resolver); - root_ns = g_scan_namespace_new(NULL); set_rost_root_namespace(root_ns); if (result) result = populate_main_scan_namespace(root_ns); + if (result) result = load_all_known_scan_token_modifiers(); if (result) result = init_segment_content_hash_table(); @@ -157,6 +158,7 @@ void unload_all_core_components(bool cs) unload_processors_definitions(); + unload_all_scan_token_modifiers(); set_rost_root_namespace(NULL); #ifdef HAVE_MAGIC_SUPPORT |