diff options
-rw-r--r-- | mate-settings-daemon/mate-settings-manager.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mate-settings-daemon/mate-settings-manager.c b/mate-settings-daemon/mate-settings-manager.c index 9b43478..88758bf 100644 --- a/mate-settings-daemon/mate-settings-manager.c +++ b/mate-settings-daemon/mate-settings-manager.c @@ -174,6 +174,7 @@ is_schema (const char *schema) GSettingsSchemaSource *source = NULL; gchar **non_relocatable = NULL; gchar **relocatable = NULL; + gboolean in_schema; source = g_settings_schema_source_get_default (); if (!source) @@ -181,8 +182,14 @@ is_schema (const char *schema) g_settings_schema_source_list_schemas (source, TRUE, &non_relocatable, &relocatable); - return (is_item_in_schema (non_relocatable, schema) || + in_schema = (is_item_in_schema (non_relocatable, schema) || is_item_in_schema (relocatable, schema)); + + + g_strfreev (non_relocatable); + g_strfreev (relocatable); + + return in_schema; } static void |