main: Fix a memory leak

We are pointlessly calling g_settings_list_keys() twice, without
freeing the result from the first call.
This commit is contained in:
Florian Müllner 2015-06-19 13:47:23 +02:00
parent 2015fc97dc
commit ad297ea9dc

View File

@ -181,7 +181,6 @@ shell_prefs_init (void)
g_object_get (G_OBJECT (settings), "schema-id", &schema_id, NULL); g_object_get (G_OBJECT (settings), "schema-id", &schema_id, NULL);
keys = g_settings_list_keys (settings);
for (keys = k = g_settings_list_keys (settings); *k; k++) for (keys = k = g_settings_list_keys (settings); *k; k++)
meta_prefs_override_preference_schema (*k, schema_id); meta_prefs_override_preference_schema (*k, schema_id);