summaryrefslogtreecommitdiff
path: root/src/glibext
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/glibext
parent7b3ca7accd4103bb5069d31b2389ea76c57846ca (diff)
Fixed extra GObjects leaks.
Diffstat (limited to 'src/glibext')
-rw-r--r--src/glibext/configuration.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/glibext/configuration.c b/src/glibext/configuration.c
index 0d3d011..03575b0 100644
--- a/src/glibext/configuration.c
+++ b/src/glibext/configuration.c
@@ -1146,14 +1146,13 @@ static void g_generic_config_init(GGenConfig *config)
static void g_generic_config_dispose(GGenConfig *config)
{
- GList *iter; /* Boucle de parcours */
+ g_list_free_full(config->groups, g_object_unref);
- for (iter = g_list_first(config->params);
- iter != NULL;
- iter = g_list_next(iter))
- {
- g_object_unref(G_OBJECT(iter->data));
- }
+ config->groups = NULL;
+
+ g_list_free_full(config->params, g_object_unref);
+
+ config->params = NULL;
G_OBJECT_CLASS(g_generic_config_parent_class)->dispose(G_OBJECT(config));