summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-02-07 19:23:14 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-02-07 19:23:14 (GMT)
commit3da6844c02f4041998ec655c19c7987e875adaf8 (patch)
tree752627c9e62043674df6700cf845ace3b4cf49ba /src/core
parent7b3ca7accd4103bb5069d31b2389ea76c57846ca (diff)
Fixed extra GObjects leaks.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/core.c b/src/core/core.c
index 5ce07d0..47e808d 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -131,12 +131,23 @@ bool load_all_basic_components(void)
void unload_all_basic_components(void)
{
+ GContentExplorer *explorer; /* Explorateur de contenus */
+ GContentResolver *resolver; /* Résolveur de contenus */
+
unload_collection_definitions();
unload_demanglers_definitions();
unload_processors_definitions();
+ explorer = g_content_explorer_new();
+ set_current_content_explorer(NULL);
+ g_object_unref(G_OBJECT(explorer));
+
+ resolver = g_content_resolver_new();
+ set_current_content_resolver(NULL);
+ g_object_unref(G_OBJECT(resolver));
+
exit_global_works();
g_generic_config_write(get_main_configuration());