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:
a12b5f6
)
symbols: fix memleak from default KeyInfo
author
Ran Benita
<ran234@gmail.com>
Fri, 21 Sep 2012 23:36:05 +0000
(
02:36
+0300)
committer
Daniel Stone
<daniel@fooishbar.org>
Sun, 23 Sep 2012 23:08:54 +0000
(09:08 +1000)
If the default KeyInfo gets any keysyms or actions, it needs to be
free'd.
Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/symbols.c
patch
|
blob
|
history
diff --git
a/src/xkbcomp/symbols.c
b/src/xkbcomp/symbols.c
index
91feea0
..
3ec3fc1
100644
(file)
--- a/
src/xkbcomp/symbols.c
+++ b/
src/xkbcomp/symbols.c
@@
-194,6
+194,7
@@
ClearSymbolsInfo(SymbolsInfo * info)
ClearKeyInfo(keyi);
darray_free(info->keys);
darray_free(info->modMaps);
+ ClearKeyInfo(&info->dflt);
}
static bool