summaryrefslogtreecommitdiff
path: root/src/glibext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-11-06 08:06:09 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-11-06 08:06:09 (GMT)
commit46b89f3a88b764eed43755f4b431a929291f2ef8 (patch)
tree2234f32f725f4229cec698bfd63f519efdafb246 /src/glibext
parent72023cf93c4a2b27d4a6ed894e7e4f0f586cfc14 (diff)
Fix newly detected memory leaks.
Diffstat (limited to 'src/glibext')
-rw-r--r--src/glibext/configuration.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/glibext/configuration.c b/src/glibext/configuration.c
index 5bc94a7..ce7fac8 100644
--- a/src/glibext/configuration.c
+++ b/src/glibext/configuration.c
@@ -1224,13 +1224,9 @@ static void g_generic_config_init(GGenConfig *config)
static void g_generic_config_dispose(GGenConfig *config)
{
- g_list_free_full(config->groups, g_object_unref);
+ g_clear_list(&config->groups, g_object_unref);
- config->groups = NULL;
-
- g_list_free_full(config->params, g_object_unref);
-
- config->params = NULL;
+ g_clear_list(&config->params, g_object_unref);
G_OBJECT_CLASS(g_generic_config_parent_class)->dispose(G_OBJECT(config));