From 6b49f8f26b1f54b48a6e16a4c4880d33df776f3b Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sat, 26 Sep 2015 12:31:29 +0200 Subject: [PATCH] Free input device list. Fixes a memory leak. --- src/autotype/x11/AutoTypeX11.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/autotype/x11/AutoTypeX11.cpp b/src/autotype/x11/AutoTypeX11.cpp index 06e5b68d..6a2b2ab6 100644 --- a/src/autotype/x11/AutoTypeX11.cpp +++ b/src/autotype/x11/AutoTypeX11.cpp @@ -561,6 +561,8 @@ XkbDescPtr AutoTypePlatformX11::getKeyboard() } } + XFreeDeviceList(devices); + return XkbGetKeyboard(m_dpy, XkbCompatMapMask | XkbGeometryMask, keyboard_id); }