mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 05:54:29 +00:00
server: Grab borrowed debugger reference while handling wake_up() events. (Valgrind).
This commit is contained in:
parent
8fe759dfae
commit
3447567b42
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue