projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
869c687
)
Fix incorrect indexing while freeing
author
Ran Benita
<ran234@gmail.com>
Tue, 22 May 2012 05:04:59 +0000
(08:04 +0300)
committer
Ran Benita
<ran234@gmail.com>
Tue, 22 May 2012 05:50:25 +0000
(08:50 +0300)
Signed-off-by: Ran Benita <ran234@gmail.com>
src/alloc.c
patch
|
blob
|
history
diff --git
a/src/alloc.c
b/src/alloc.c
index
e782d57
..
ccdea78
100644
(file)
--- a/
src/alloc.c
+++ b/
src/alloc.c
@@
-508,7
+508,7
@@
XkbcFreeNames(struct xkb_keymap *keymap)
for (i = 0; i < map->num_types; i++, type++) {
int j;
for (j = 0; j < type->num_levels; j++)
- free(UNCONSTIFY(type->level_names[
i
]));
+ free(UNCONSTIFY(type->level_names[
j
]));
free(type->level_names);
type->level_names = NULL;
}