summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <[email protected]>2020-07-20 16:26:20 +0200
committerLuke from DC <[email protected]>2020-07-29 20:47:20 +0000
commit2b2ed2831a79e75fa9691290cefb266f019abb66 (patch)
tree881f71bd8cce077f86331bd0ea4916081d536414
parent7dc7efb135974b6089635062370450587c4ae58e (diff)
downloadmate-panel-2b2ed2831a79e75fa9691290cefb266f019abb66.tar.bz2
mate-panel-2b2ed2831a79e75fa9691290cefb266f019abb66.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 2671e226..44decf37 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);
}