mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 15:59:31 +02:00
text-backend: remove the weston_seat destruction listener on destroy
Prior to freeing the memory in which the link node for the signal is emedded we should remove the link node from the list to prevent the list from being corrupted. https://bugs.freedesktop.org/show_bug.cgi?id=67231
This commit is contained in:
parent
b3174f5fcf
commit
6c0a5ec022
1 changed files with 1 additions and 0 deletions
|
|
@ -792,6 +792,7 @@ input_method_notifier_destroy(struct wl_listener *listener, void *data)
|
|||
deactivate_text_input(input_method->model, input_method);
|
||||
|
||||
wl_global_destroy(input_method->input_method_global);
|
||||
wl_list_remove(&input_method->destroy_listener.link);
|
||||
|
||||
free(input_method);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue