From f01509be6820ee1ec0d743241ef396efc58da3fb Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mon, 20 Jul 2020 16:26:20 +0200 Subject: panel-profile: Fix leaking list elements --- mate-panel/panel-profile.c | 4 ++-- 1 file 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); } -- cgit v1.2.1