From e200fc13f17d2de1082f8d97bf74f498d6acf2e7 Mon Sep 17 00:00:00 2001 From: Alan Griffiths Date: Mon, 13 Jan 2025 14:55:28 +0000 Subject: [PATCH] Don't leak VirtualInputDevice keyboards --- src/server/frontend_wayland/text_input_v3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/frontend_wayland/text_input_v3.cpp b/src/server/frontend_wayland/text_input_v3.cpp index 422024a5f96..7166157365f 100644 --- a/src/server/frontend_wayland/text_input_v3.cpp +++ b/src/server/frontend_wayland/text_input_v3.cpp @@ -333,6 +333,7 @@ mf::TextInputV3::TextInputV3( mf::TextInputV3::~TextInputV3() { seat.remove_focus_listener(client, this); + ctx->device_registry->remove_device(keyboard_device); ctx->text_input_hub->deactivate_handler(handler); }