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:
Rob Bradford 2013-07-24 16:57:33 +01:00 committed by Kristian Høgsberg
parent ead3ef8c77
commit c30c4bd6c8

View file

@ -273,6 +273,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);
}