summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2009-03-19 21:35:25 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2009-03-23 16:07:23 +1000
commitd698e62690e0a52fa537f1cd792cab7a5b1bafdf (patch)
tree0921f7e723d51ed4210792127b61186df15b3f72 /xkb
parente26f79335bb7a9ad34fe9b23c283a214202f89ed (diff)
xkb: plug a memory leak in XkbCopySrvLedInfo (#20756)
X.Org Bug 20756 <http://bugs.freedesktop.org/show_bug.cgi?id=20756> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkbLEDs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkb/xkbLEDs.c b/xkb/xkbLEDs.c
index c61296b18..a70ac841d 100644
--- a/xkb/xkbLEDs.c
+++ b/xkb/xkbLEDs.c
@@ -643,7 +643,7 @@ XkbCopySrvLedInfo( DeviceIntPtr from,
else
sli_new->fb.lf = lf;
- if (sli_new->flags & XkbSLI_IsDefault) {
+ if (!(sli_new->flags & XkbSLI_IsDefault)) {
sli_new->names= _XkbTypedCalloc(XkbNumIndicators,Atom);
sli_new->maps= _XkbTypedCalloc(XkbNumIndicators,XkbIndicatorMapRec);
} /* else sli_new->names/maps is pointing to