summaryrefslogtreecommitdiff
path: root/plugins/xsettings/msd-xsettings-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/xsettings/msd-xsettings-manager.c')
-rw-r--r--plugins/xsettings/msd-xsettings-manager.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/xsettings/msd-xsettings-manager.c b/plugins/xsettings/msd-xsettings-manager.c
index 8c1b9fb..9c91e82 100644
--- a/plugins/xsettings/msd-xsettings-manager.c
+++ b/plugins/xsettings/msd-xsettings-manager.c
@@ -407,7 +407,7 @@ update_property (GString *props, const gchar* key, const gchar* value)
if (g_str_has_prefix (props->str, needle))
found = props->str;
else
- found = strstr (props->str, needle);
+ found = strstr (props->str, needle);
if (found) {
size_t value_index;
@@ -421,6 +421,8 @@ update_property (GString *props, const gchar* key, const gchar* value)
} else {
g_string_append_printf (props, "%s:\t%s\n", key, value);
}
+
+ g_free (needle);
}
static void