OSHelper: Linux - fix isCapsLock memory leak

This commit is contained in:
xiphon 2021-02-03 10:41:33 +00:00
parent c1573c2c2a
commit 4f10683c2c

View file

@ -223,6 +223,7 @@ bool OSHelper::isCapsLock() const
unsigned n;
XkbGetIndicatorState(d, XkbUseCoreKbd, &n);
caps_state = (n & 0x01) == 1;
XCloseDisplay(d);
}
return caps_state;
#elif defined(Q_OS_MAC)