summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <[email protected]>2020-07-20 13:16:27 +0200
committerPablo Barciela <[email protected]>2020-08-03 13:46:34 +0200
commit9ce8b68d54caa92940a2d77279aed4bba63dbe03 (patch)
tree3c7e7df841ea8db40b5587e00823b30206c0c246
parent32f9f41c3d0bdc5a2e03689b592073ba11495e2f (diff)
downloadmate-panel-9ce8b68d54caa92940a2d77279aed4bba63dbe03.tar.bz2
mate-panel-9ce8b68d54caa92940a2d77279aed4bba63dbe03.tar.xz
panel-lockdown: Fix leaking string array
Overwriting an already allocated memory.
-rw-r--r--mate-panel/panel-lockdown.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mate-panel/panel-lockdown.c b/mate-panel/panel-lockdown.c
index 1c728511..d0051082 100644
--- a/mate-panel/panel-lockdown.c
+++ b/mate-panel/panel-lockdown.c
@@ -109,6 +109,7 @@ disabled_applets_notify (GSettings *settings,
gchar *key,
PanelLockdown *lockdown)
{
+ g_strfreev (lockdown->disabled_applets);
lockdown->disabled_applets = g_settings_get_strv (settings, key);
panel_lockdown_invoke_closures (lockdown);
}