summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <[email protected]>2020-07-20 13:16:27 +0200
committerLuke from DC <[email protected]>2020-07-29 20:47:20 +0000
commitaae875dc681a14d57f3dd0382d9e461031e17420 (patch)
treec4f2ad6444bd91429cac302b549a9aabb210056c
parent39705f6ecb0b33eaeb520d08e90e0b9764b52dd1 (diff)
downloadmate-panel-aae875dc681a14d57f3dd0382d9e461031e17420.tar.bz2
mate-panel-aae875dc681a14d57f3dd0382d9e461031e17420.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);
}