summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <[email protected]>2020-07-20 16:26:20 +0200
committerPablo Barciela <[email protected]>2020-08-03 13:46:34 +0200
commitf01509be6820ee1ec0d743241ef396efc58da3fb (patch)
tree2efd1df5e4a6e37358cbc61187b001f3e502b0a6
parent1c47e26d9b1a71543eee799434f496038cb923a9 (diff)
downloadmate-panel-f01509be6820ee1ec0d743241ef396efc58da3fb.tar.bz2
mate-panel-f01509be6820ee1ec0d743241ef396efc58da3fb.tar.xz
panel-profile: Fix leaking list elements
-rw-r--r--mate-panel/panel-profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mate-panel/panel-profile.c b/mate-panel/panel-profile.c
index 1d8cd349..328ffab7 100644
--- a/mate-panel/panel-profile.c
+++ b/mate-panel/panel-profile.c
@@ -1507,7 +1507,7 @@ panel_profile_toplevel_id_list_notify (GSettings *settings,
g_idle_add (load_default_layout_idle, NULL);
g_slist_free (existing_toplevels);
- g_slist_free (toplevel_ids);
+ g_slist_free_full (toplevel_ids, g_free);
}
static void
@@ -1542,7 +1542,7 @@ panel_profile_object_id_list_update (gchar **objects)
(PanelProfileDestroyFunc) panel_profile_destroy_object);
g_slist_free (sublist);
- g_slist_free (object_ids);
+ g_slist_free_full (object_ids, g_free);
mate_panel_applet_load_queued_applets (FALSE);
}