summaryrefslogtreecommitdiffstats
path: root/xsettings/xsettings-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'xsettings/xsettings-common.c')
-rw-r--r--xsettings/xsettings-common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xsettings/xsettings-common.c b/xsettings/xsettings-common.c
index 7507714..3d74440 100644
--- a/xsettings/xsettings-common.c
+++ b/xsettings/xsettings-common.c
@@ -147,6 +147,9 @@ xsettings_setting_free (XSettingsSetting *setting)
{
if (setting->type == XSETTINGS_TYPE_STRING)
free (setting->data.v_string);
+
+ if (setting->name)
+ free (setting->name);
free (setting);
}