From df42a80ea2ac7ce837d0d058ceb96964ba6e471d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 17 Dec 2013 14:58:19 -0800 Subject: [PATCH] compositor: Initialize output listener links Make sure the links are initialized so we can safely remove the listeners in weston_view_unmap(). https://bugs.freedesktop.org/show_bug.cgi?id=72808 --- src/compositor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compositor.c b/src/compositor.c index 51699216..6ca297ad 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -451,8 +451,10 @@ weston_view_create(struct weston_surface *surface) view->output = NULL; view->output_move_listener.notify = weston_view_output_move_handler; + wl_list_init(&view->output_move_listener.link); view->output_destroy_listener.notify = weston_view_output_destroy_handler; + wl_list_init(&view->output_destroy_listener.link); return view; }