Commit 5f22e7ca authored by Alexandre Julliard's avatar Alexandre Julliard

Remove the process locks in process_killed, not process_destroy.

parent 302cd456
......@@ -424,7 +424,6 @@ static void process_destroy( struct object *obj )
assert( list_empty( &process->thread_list ));
set_process_startup_state( process, STARTUP_ABORTED );
remove_process_locks( process );
if (process->console) release_object( process->console );
if (process->parent) release_object( process->parent );
if (process->msg_fd) release_object( process->msg_fd );
......@@ -623,6 +622,7 @@ static void process_killed( struct process *process )
free( dll );
}
destroy_process_classes( process );
remove_process_locks( process );
set_process_startup_state( process, STARTUP_ABORTED );
if (process->exe.file) release_object( process->exe.file );
process->exe.file = NULL;
......
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