Fix another small memory leak.
This commit is contained in:
@@ -69,8 +69,14 @@ bool AutoTypePlatformX11::isAvailable()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_xkb && !getKeyboard()) {
|
if (!m_xkb) {
|
||||||
return false;
|
XkbDescPtr kbd = getKeyboard();
|
||||||
|
|
||||||
|
if (!kbd) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
XkbFreeKeyboard(kbd, XkbAllComponentsMask, True);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user