diff options
author | Tomas Bzatek <[email protected]> | 2020-07-20 13:16:27 +0200 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2020-08-03 13:46:34 +0200 |
commit | 9ce8b68d54caa92940a2d77279aed4bba63dbe03 (patch) | |
tree | 3c7e7df841ea8db40b5587e00823b30206c0c246 | |
parent | 32f9f41c3d0bdc5a2e03689b592073ba11495e2f (diff) | |
download | mate-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.c | 1 |
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); } |