diff options
author | rbuj <[email protected]> | 2020-05-19 18:38:53 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-08-13 13:27:37 +0200 |
commit | 8d95c901cb97c847d3530e3ca30d3cd431a9efc3 (patch) | |
tree | a57547999e43ed0840ab81b4c15007cc6807cda5 | |
parent | 2364458159fb15711b3c4737766a9ec18d8df5af (diff) | |
download | mate-settings-daemon-8d95c901cb97c847d3530e3ca30d3cd431a9efc3.tar.bz2 mate-settings-daemon-8d95c901cb97c847d3530e3ca30d3cd431a9efc3.tar.xz |
plugin xsettings: Fix memory leak on delayed_toggle_bg_draw
-rw-r--r-- | plugins/xsettings/msd-xsettings-manager.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/xsettings/msd-xsettings-manager.c b/plugins/xsettings/msd-xsettings-manager.c index 48bd702..7fa51ca 100644 --- a/plugins/xsettings/msd-xsettings-manager.c +++ b/plugins/xsettings/msd-xsettings-manager.c @@ -508,8 +508,11 @@ static gboolean delayed_toggle_bg_draw (gboolean value) { GSettings *settings; + settings = g_settings_new ("org.mate.background"); g_settings_set_boolean (settings, "show-desktop-icons", value); + g_object_unref (settings); + return FALSE; } @@ -574,6 +577,7 @@ scale_change_workarounds (MateXSettingsManager *manager, int new_scale) g_timeout_add_seconds (1, (GSourceFunc) delayed_toggle_bg_draw, (gpointer) FALSE); g_timeout_add_seconds (2, (GSourceFunc) delayed_toggle_bg_draw, (gpointer) TRUE); } + g_object_unref (desktop_settings); } /* Store new scale value */ |