summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2018-08-27 23:52:46 -0400
committerraveit65 <[email protected]>2018-08-28 10:01:33 +0200
commite0b7a6bd974028c325aa6a7c93e7b662b990faef (patch)
tree49e66bc4c215bde98664879b274220d13cd285e6
parent763db9d81c7f5f3d0871a034e38cbf5b25124a09 (diff)
downloadmate-settings-daemon-e0b7a6bd974028c325aa6a7c93e7b662b990faef.tar.bz2
mate-settings-daemon-e0b7a6bd974028c325aa6a7c93e7b662b990faef.tar.xz
daemon: fix a memory leak
-rw-r--r--mate-settings-daemon/mate-settings-manager.c9
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