summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/core.c b/src/core/core.c
index fe7a5e0..0fa2c74 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -101,9 +101,11 @@ bool load_all_core_components(bool cs)
explorer = g_content_explorer_new();
set_current_content_explorer(explorer);
+ g_object_unref(G_OBJECT(explorer));
resolver = g_content_resolver_new();
set_current_content_resolver(resolver);
+ g_object_unref(G_OBJECT(resolver));
#ifdef INCLUDE_MAGIC_SUPPORT
if (result) result = init_magic_cookie();
@@ -111,6 +113,7 @@ bool load_all_core_components(bool cs)
root_ns = g_scan_namespace_new(NULL);
set_rost_root_namespace(root_ns);
+ g_object_unref(G_OBJECT(root_ns));
if (result) result = populate_main_scan_namespace(root_ns);
if (result) result = load_all_known_scan_token_modifiers();