mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 15:11:57 -07:00
ikeyboard: free xkbSymState in clearManuallyAllocd
asan reported a leak on xkbSymState on destruction, because it wasnt beeing unrefed, was only being unrefed on calls to updateXKBTranslationState.
This commit is contained in:
@@ -44,6 +44,10 @@ void IKeyboard::clearManuallyAllocd() {
|
|||||||
if (xkbKeymapFD >= 0)
|
if (xkbKeymapFD >= 0)
|
||||||
close(xkbKeymapFD);
|
close(xkbKeymapFD);
|
||||||
|
|
||||||
|
if (xkbSymState)
|
||||||
|
xkb_state_unref(xkbSymState);
|
||||||
|
|
||||||
|
xkbSymState = nullptr;
|
||||||
xkbKeymap = nullptr;
|
xkbKeymap = nullptr;
|
||||||
xkbState = nullptr;
|
xkbState = nullptr;
|
||||||
xkbStaticState = nullptr;
|
xkbStaticState = nullptr;
|
||||||
|
Reference in New Issue
Block a user