From d765a39b9d48886a3d16d11d62bd79c7e1131577 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Thu, 16 Jul 2020 17:44:20 +0200 Subject: panel-profile: Fix leaking list elements The mate_gsettings_strv_to_gslist() call will dup all the strings and removing duplicates should free them. --- 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 b976306e..1d8cd349 100644 --- a/mate-panel/panel-profile.c +++ b/mate-panel/panel-profile.c @@ -1476,7 +1476,7 @@ panel_profile_toplevel_id_list_notify (GSettings *settings, toplevel_ids = mate_gsettings_strv_to_gslist ((const gchar **) toplevel_ids_strv); toplevel_ids = panel_g_slist_make_unique (toplevel_ids, (GCompareFunc) g_strcmp0, - FALSE); + TRUE); g_strfreev (toplevel_ids_strv); existing_toplevels = NULL; @@ -1520,7 +1520,7 @@ panel_profile_object_id_list_update (gchar **objects) object_ids = mate_gsettings_strv_to_gslist ((const gchar **) objects); object_ids = panel_g_slist_make_unique (object_ids, (GCompareFunc) g_strcmp0, - FALSE); + TRUE); existing_applets = mate_panel_applet_list_applets (); -- cgit v1.2.1