From: Rob Bradford Date: Wed, 24 Jul 2013 15:57:33 +0000 (+0100) Subject: clipboard: remove the weston_seat destruction listener on destroy X-Git-Tag: upstream/0.1.8~1106 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c30c4bd6c86130a9fda4231447271f02d29e494f;p=profile%2Fivi%2Fweston-ivi-shell.git 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 --- diff --git a/src/clipboard.c b/src/clipboard.c index 7cba751..54f06e6 100644 --- a/src/clipboard.c +++ b/src/clipboard.c @@ -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); }