mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-29 17:48:46 -04:00
Fix another small memory leak.
This commit is contained in:
parent
6b49f8f26b
commit
4f2d56a55f
1 changed files with 8 additions and 2 deletions
|
@ -69,10 +69,16 @@ bool AutoTypePlatformX11::isAvailable()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_xkb && !getKeyboard()) {
|
if (!m_xkb) {
|
||||||
|
XkbDescPtr kbd = getKeyboard();
|
||||||
|
|
||||||
|
if (!kbd) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XkbFreeKeyboard(kbd, XkbAllComponentsMask, True);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue