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:
3077e97
)
Don't leak SymbolsInfo
author
Daniel Stone
<daniel@fooishbar.org>
Wed, 15 Feb 2012 16:42:45 +0000
(16:42 +0000)
committer
Daniel Stone
<daniel@fooishbar.org>
Wed, 15 Feb 2012 16:42:45 +0000
(16:42 +0000)
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/xkbcomp/symbols.c
patch
|
blob
|
history
diff --git
a/src/xkbcomp/symbols.c
b/src/xkbcomp/symbols.c
index
2de160c
..
cbf3bd6
100644
(file)
--- a/
src/xkbcomp/symbols.c
+++ b/
src/xkbcomp/symbols.c
@@
-2211,8
+2211,11
@@
CompileSymbols(XkbFile *file, struct xkb_desc * xkb, unsigned merge)
info.dflt.defs.merge = merge;
HandleSymbolsFile(file, xkb, merge, &info);
- if (info.nKeys == 0)
+ if (info.nKeys == 0) {
+ FreeSymbolsInfo(&info);
return True;
+ }
+
if (info.errorCount == 0)
{
KeyInfo *key;
@@
-2292,7
+2295,10
@@
CompileSymbols(XkbFile *file, struct xkb_desc * xkb, unsigned merge)
next = (ModMapEntry *) mm->defs.next;
}
}
+ FreeSymbolsInfo(&info);
return True;
}
+
+ FreeSymbolsInfo(&info);
return False;
}