aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/XKBAlloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/XKBAlloc.c')
-rw-r--r--nx-X11/lib/X11/XKBAlloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/XKBAlloc.c b/nx-X11/lib/X11/XKBAlloc.c
index a089ff46d..9c3430c1a 100644
--- a/nx-X11/lib/X11/XKBAlloc.c
+++ b/nx-X11/lib/X11/XKBAlloc.c
@@ -442,8 +442,7 @@ XkbAllocDeviceInfo(unsigned deviceSpec, unsigned nButtons, unsigned szLeds)
devi->sz_leds = szLeds;
devi->leds = _XkbTypedCalloc(szLeds, XkbDeviceLedInfoRec);
if (!devi->leds) {
- if (devi->btn_acts)
- _XkbFree(devi->btn_acts);
+ _XkbFree(devi->btn_acts);
_XkbFree(devi);
return NULL;
}