From 49868e3c93a613f50ce3a746d0276b86ecdd27c3 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 5 Feb 2007 18:05:03 +0100 Subject: [PATCH] server: Clear the thread wait before releasing objects to avoid nested calls. Reported by Misha Koshelev. --- server/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/thread.c b/server/thread.c index b4a16cdfc0a..030ee204a7c 100644 --- a/server/thread.c +++ b/server/thread.c @@ -447,10 +447,10 @@ static void end_wait( struct thread *thread ) int i; assert( wait ); + thread->wait = wait->next; for (i = 0, entry = wait->queues; i < wait->count; i++, entry++) entry->obj->ops->remove_queue( entry->obj, entry ); if (wait->user) remove_timeout_user( wait->user ); - thread->wait = wait->next; free( wait ); } -- 2.11.4.GIT