mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 00:07:51 +00:00
OSHelper: Linux - fix isCapsLock memory leak
This commit is contained in:
parent
c1573c2c2a
commit
4f10683c2c
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue