diff options
| author | xiphon <xiphon@protonmail.com> | 2021-02-03 10:41:33 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2021-02-03 10:41:33 +0000 |
| commit | 4f10683c2c609917f94e56bce084aa42c64b68b5 (patch) | |
| tree | 03f4f5711a37ca1b978ca96102ed71ab22ab25bc /src/main | |
| parent | c1573c2c2acb0025ef3cec19e56061aa582b0d32 (diff) | |
| download | monzero-gui-4f10683c2c609917f94e56bce084aa42c64b68b5.tar.gz monzero-gui-4f10683c2c609917f94e56bce084aa42c64b68b5.tar.xz monzero-gui-4f10683c2c609917f94e56bce084aa42c64b68b5.zip | |
OSHelper: Linux - fix isCapsLock memory leak
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/oshelper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/oshelper.cpp b/src/main/oshelper.cpp index 7037e21e..2f8daf7f 100644 --- a/src/main/oshelper.cpp +++ b/src/main/oshelper.cpp @@ -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) |
