mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Fix another small memory leak.
This commit is contained in:
@@ -69,10 +69,16 @@ bool AutoTypePlatformX11::isAvailable()
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!m_xkb && !getKeyboard()) {
|
||||
if (!m_xkb) {
|
||||
XkbDescPtr kbd = getKeyboard();
|
||||
|
||||
if (!kbd) {
|
||||
return false;
|
||||
}
|
||||
|
||||
XkbFreeKeyboard(kbd, XkbAllComponentsMask, True);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user