mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-21 09:31:32 -08:00
Fix another small memory leak.
This commit is contained in:
1 parent
6b49f8f26b
commit
4f2d56a55f
1 file changed
+8
-2
@@ -69,8 +69,14 @@ bool AutoTypePlatformX11::isAvailable()
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!m_xkb && !getKeyboard()) {
|
||||
return false;
|
||||
if (!m_xkb) {
|
||||
XkbDescPtr kbd = getKeyboard();
|
||||
|
||||
if (!kbd) {
|
||||
return false;
|
||||
}
|
||||
|
||||
XkbFreeKeyboard(kbd, XkbAllComponentsMask, True);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user