summaryrefslogtreecommitdiff
path: root/xkb/xkb.c
diff options
context:
space:
mode:
authorRami Ylimäki <rami.ylimaki@vincit.fi>2011-03-11 14:30:49 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2011-03-16 15:21:41 +1000
commit5c47f8beac7f87680c6f7331483b9cf94a1dbc86 (patch)
tree29029202e6e534bc900ba45d94f19df68b09a94f /xkb/xkb.c
parent6f46ae3c69c48f389560af1491ed1729ba45866f (diff)
xkb: Release XKB component names when compiling keymap.
Reviewed-by: Erkki Seppälä <erkki.seppala@vincit.fi> Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb/xkb.c')
-rw-r--r--xkb/xkb.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/xkb/xkb.c b/xkb/xkb.c
index d701ea13c..fb44b24e9 100644
--- a/xkb/xkb.c
+++ b/xkb/xkb.c
@@ -5895,16 +5895,7 @@ ProcXkbGetKbdByName(ClientPtr client)
XkbFreeKeyboard(new,XkbAllComponentsMask,TRUE);
new= NULL;
}
- free(names.keycodes);
- names.keycodes = NULL;
- free(names.types);
- names.types = NULL;
- free(names.compat);
- names.compat = NULL;
- free(names.symbols);
- names.symbols = NULL;
- free(names.geometry);
- names.geometry = NULL;
+ XkbFreeComponentNames(&names, FALSE);
return Success;
}