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:
bcd811c
)
Remove unnecessary allocation in expr.c
author
Daniel Stone
<daniel@fooishbar.org>
Wed, 21 Mar 2012 00:33:29 +0000
(
00:33
+0000)
committer
Daniel Stone
<daniel@fooishbar.org>
Wed, 21 Mar 2012 00:33:29 +0000
(
00:33
+0000)
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/xkbcomp/expr.c
patch
|
blob
|
history
diff --git
a/src/xkbcomp/expr.c
b/src/xkbcomp/expr.c
index
e4b0569
..
791d28e
100644
(file)
--- a/
src/xkbcomp/expr.c
+++ b/
src/xkbcomp/expr.c
@@
-214,7
+214,7
@@
LookupModMask(const void * priv, xkb_atom_t field, unsigned type,
if (type != TypeInt)
return False;
- str = XkbcAtom
GetString
(field);
+ str = XkbcAtom
Text
(field);
if (str == NULL)
return False;
if (uStrCaseCmp(str, "all") == 0)
@@
-225,7
+225,6
@@
LookupModMask(const void * priv, xkb_atom_t field, unsigned type,
val_rtrn->uval = (1 << val_rtrn->uval);
else
ret = False;
- free(str);
return ret;
}