From e806c976104fcbc67d754a196ff700f3f42b73e3 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 24 Nov 2001 03:44:47 +0000 Subject: [PATCH] Skip queue cleanups if queue has been destroyed already. --- server/window.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/window.c b/server/window.c index 8e8af4b1456..1a3c4f260d7 100644 --- a/server/window.c +++ b/server/window.c @@ -251,8 +251,11 @@ static void destroy_window( struct window *win ) if (ptr->owner == win) ptr->owner = NULL; } - if (win->paint_count) inc_queue_paint_count( win->thread, -win->paint_count ); - queue_cleanup_window( win->thread, win->handle ); + if (win->thread->queue) + { + if (win->paint_count) inc_queue_paint_count( win->thread, -win->paint_count ); + queue_cleanup_window( win->thread, win->handle ); + } free_user_handle( win->handle ); destroy_properties( win ); unlink_window( win );