mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 12:28:04 +02:00
clipboard: 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
6c0a5ec022
commit
7adbbddee9
1 changed files with 1 additions and 0 deletions
|
|
@ -256,6 +256,7 @@ clipboard_destroy(struct wl_listener *listener, void *data)
|
|||
container_of(listener, struct clipboard, destroy_listener);
|
||||
|
||||
wl_list_remove(&clipboard->selection_listener.link);
|
||||
wl_list_remove(&clipboard->destroy_listener.link);
|
||||
|
||||
free(clipboard);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue