diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-11-01 21:36:50 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-11-01 21:36:50 (GMT) |
commit | ce33112cf8c913635402cb8b6d127f9ac9f2b6b5 (patch) | |
tree | 731eaf0f50df1cc8033decbfce879b51ce5757e9 /src/core | |
parent | 4eebf4a8752464691053fa3706ea6be9413676fa (diff) |
Fix various memory leaks.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core.c | 3 |
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(); |