Commit 3447567b authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

server: Grab borrowed debugger reference while handling wake_up() events. (Valgrind).

parent 8fe759df
......@@ -241,7 +241,13 @@ static void link_event( struct debug_event *event )
assert( debug_ctx );
grab_object( event );
list_add_tail( &debug_ctx->event_queue, &event->entry );
if (!event->sender->debug_event) wake_up( &debug_ctx->obj, 0 );
if (!event->sender->debug_event)
{
/* grab reference since debugger could be killed while trying to wake up */
grab_object( debug_ctx );
wake_up( &debug_ctx->obj, 0 );
release_object( debug_ctx );
}
}
/* find the next event that we can send to the debugger */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment