diff options
author | marha <marha@users.sourceforge.net> | 2011-03-17 14:17:54 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-03-17 14:17:54 +0000 |
commit | 76b655664dad149451d0abaa15929d1b7b62e0c6 (patch) | |
tree | e7c3389fec52eaad405e2025e04555766493022c /xorg-server/xkb/XKBAlloc.c | |
parent | a44b2f0d059871926ffb84dabdae53ddaa390beb (diff) | |
parent | d7f1bd4112420f1d4b41c5409074eca6b34bf507 (diff) | |
download | vcxsrv-76b655664dad149451d0abaa15929d1b7b62e0c6.tar.gz vcxsrv-76b655664dad149451d0abaa15929d1b7b62e0c6.tar.bz2 vcxsrv-76b655664dad149451d0abaa15929d1b7b62e0c6.zip |
svn merge ^/branches/released .
Diffstat (limited to 'xorg-server/xkb/XKBAlloc.c')
-rw-r--r-- | xorg-server/xkb/XKBAlloc.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/xorg-server/xkb/XKBAlloc.c b/xorg-server/xkb/XKBAlloc.c index 8c439ba0b..89ba5fb4a 100644 --- a/xorg-server/xkb/XKBAlloc.c +++ b/xorg-server/xkb/XKBAlloc.c @@ -333,3 +333,22 @@ XkbFreeKeyboard(XkbDescPtr xkb,unsigned which,Bool freeAll) free(xkb);
return;
}
+
+
+/***====================================================================***/
+
+void
+XkbFreeComponentNames(XkbComponentNamesPtr names, Bool freeNames)
+{
+ if (names)
+ {
+ free(names->keycodes);
+ free(names->types);
+ free(names->compat);
+ free(names->symbols);
+ free(names->geometry);
+ memset(names, 0, sizeof(XkbComponentNamesRec));
+ }
+ if (freeNames)
+ free(names);
+}
|