Skip to content
Snippets Groups Projects
Commit 1356afed authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard
Browse files

server: Keep reference to terminated async in free_async_queue.

parent 12c6ac5f
No related branches found
No related tags found
No related merge requests found
......@@ -192,10 +192,12 @@ void free_async_queue( struct async_queue *queue )
LIST_FOR_EACH_ENTRY_SAFE( async, next, &queue->queue, struct async, queue_entry )
{
grab_object( &async->obj );
if (!async->completion) async->completion = fd_get_completion( async->fd, &async->comp_key );
async->fd = NULL;
async_terminate( async, STATUS_HANDLES_CLOSED );
async->queue = NULL;
release_object( &async->obj );
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment