summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <[email protected]>2020-07-16 17:44:20 +0200
committerraveit65 <[email protected]>2020-07-23 13:32:45 +0200
commitd765a39b9d48886a3d16d11d62bd79c7e1131577 (patch)
treef19d819877b027598dc747d99c8a63ebeb63ba85
parent51179d4fa26243da97911e1b08d7ce058a4e4466 (diff)
downloadmate-panel-d765a39b9d48886a3d16d11d62bd79c7e1131577.tar.bz2
mate-panel-d765a39b9d48886a3d16d11d62bd79c7e1131577.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 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 ();