summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <[email protected]>2020-07-16 17:44:20 +0200
committerraveit65 <[email protected]>2020-07-23 13:30:35 +0200
commit39e4e67594e24cfed75d44ab1abfd637ba20080e (patch)
tree815a43c082bdf24597af54f196ef704ae2ac6d63
parent3230ff1b1b7f26f6242223d391592f05fa2d6228 (diff)
downloadmate-panel-39e4e67594e24cfed75d44ab1abfd637ba20080e.tar.bz2
mate-panel-39e4e67594e24cfed75d44ab1abfd637ba20080e.tar.xz
panel-profile: Fix leaking list elements
The mate_gsettings_strv_to_gslist() call will dup all the strings and removing duplicates should free them.
-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 ccc58b84..2671e226 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 ();