diff --git a/types/wlr_input_method_v2.c b/types/wlr_input_method_v2.c index 82f60ef60b..f3d304184f 100644 --- a/types/wlr_input_method_v2.c +++ b/types/wlr_input_method_v2.c @@ -50,9 +50,6 @@ static void input_method_resource_destroy(struct wl_resource *resource) { if (!input_method) { return; } - if (input_method->keyboard_grab != NULL) { - wl_resource_destroy(input_method->keyboard_grab->resource); - } input_method_destroy(input_method); }