diff options
author | rbuj <[email protected]> | 2022-03-14 13:31:00 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2022-03-27 21:07:12 +0000 |
commit | ba311c28ea3f1c03a485e8adb90dbf79cfd4d817 (patch) | |
tree | b7cba2fab507162dc5b0d8e443ce0f5866ff0755 | |
parent | eae788e835bb97c8fcd1610a3145428520ef6ef0 (diff) | |
download | mate-settings-daemon-ba311c28ea3f1c03a485e8adb90dbf79cfd4d817.tar.bz2 mate-settings-daemon-ba311c28ea3f1c03a485e8adb90dbf79cfd4d817.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 719d966..7796e3d 100644 --- a/mate-settings-daemon/mate-settings-manager.c +++ b/mate-settings-daemon/mate-settings-manager.c @@ -426,15 +426,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 |