From 80cef675803a2c45a8181858435bb72b26ddf60e Mon Sep 17 00:00:00 2001 From: celestinmarot Date: Thu, 17 Dec 2015 12:38:53 +0100 Subject: [PATCH] Fix memory leak in X11 key LUT generation Closes #662. --- src/x11_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/x11_init.c b/src/x11_init.c index a2e526e0..52b9d784 100644 --- a/src/x11_init.c +++ b/src/x11_init.c @@ -311,6 +311,7 @@ static void createKeyTables(void) XkbFreeNames(desc, XkbKeyNamesMask, True); XkbFreeClientMap(desc, 0, True); + XkbFreeKeyboard(desc, 0, True); } for (scancode = 0; scancode < 256; scancode++)