diff options
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/WLClasses.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index 7eaebead..c625aae0 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -102,6 +102,11 @@ struct SKeyboard { bool operator==(const SKeyboard& rhs) const { return keyboard == rhs.keyboard; } + + ~SKeyboard() { + if (xkbTranslationState) + xkb_state_unref(xkbTranslationState); + } }; struct SMouse { |
