diff options
author | rbuj <[email protected]> | 2022-03-14 13:31:00 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-09 21:01:16 +0200 |
commit | e504604afc8f1a5b3bd9efdcb97b02fce4e53f57 (patch) | |
tree | f6bc17c9ee6e129d679681e27e1abea6bb5285f8 | |
parent | 0a7512040ff4e9e6354d8d519cd74dfb50fb7825 (diff) | |
download | mate-settings-daemon-e504604afc8f1a5b3bd9efdcb97b02fce4e53f57.tar.bz2 mate-settings-daemon-e504604afc8f1a5b3bd9efdcb97b02fce4e53f57.tar.xz |
mate-settings-manager: fix memory leak
-rw-r--r-- | mate-settings-daemon/mate-settings-manager.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mate-settings-daemon/mate-settings-manager.c b/mate-settings-daemon/mate-settings-manager.c index 91b5d13..8c511a1 100644 --- a/mate-settings-daemon/mate-settings-manager.c +++ b/mate-settings-daemon/mate-settings-manager.c @@ -427,15 +427,18 @@ static void mate_settings_manager_init (MateSettingsManager *manager) { char *schema; - GSettings *settings; manager->priv = mate_settings_manager_get_instance_private (manager); schema = g_strdup_printf ("%s.plugins", DEFAULT_SETTINGS_PREFIX); if (is_schema (schema)) { + GSettings *settings; + settings = g_settings_new (schema); manager->priv->init_load_priority = g_settings_get_int (settings, "init-load-priority"); + g_object_unref (settings); } + g_free (schema); } static void |