Skip to content

Commit

Permalink
mate-settings-manager: fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuj authored and lukefromdc committed Mar 27, 2022
1 parent eae788e commit ba311c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mate-settings-daemon/mate-settings-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba311c2

Please sign in to comment.