wlr_input_method_v2: Remove input method's resource from the list on destroy
It's added to manager->input_methods list in manager_get_input_method, but wasn't removed anywhere, leading to possible use-after-free in wlr_input_method_manager_v2_destroy.
https://github.com/swaywm/wlroots/pull/1782
Fixes #33 (closed)
Edited by Sebastian Krzyszkowiak