From 84b76c72c8afed48dacf4216483cb911913e779a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 13 Apr 2012 12:01:18 -0400 Subject: [PATCH] window: Initialize redraw_task.link so we can always remove it --- clients/window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clients/window.c b/clients/window.c index 62f9926d..ad0b7104 100644 --- a/clients/window.c +++ b/clients/window.c @@ -2034,6 +2034,7 @@ idle_redraw(struct task *task, uint32_t events) widget_redraw(window->widget); window_flush(window); window->redraw_needed = 0; + wl_list_init(&window->redraw_task.link); callback = wl_surface_frame(window->surface); wl_callback_add_listener(callback, &listener, window); @@ -2206,6 +2207,7 @@ window_create_internal(struct display *display, struct window *parent) wl_surface_set_user_data(window->surface, window); wl_list_insert(display->window_list.prev, &window->link); + wl_list_init(&window->redraw_task.link); if (window->shell_surface) { wl_shell_surface_set_user_data(window->shell_surface, window);