Remove an exiting thread from the process only after thread cleanup to
avoid accessing freed window classes.
This commit is contained in:
parent
fb45042e4d
commit
867ae269d4
@ -764,10 +764,10 @@ void kill_thread( struct thread *thread, int violent_death )
|
|||||||
kill_console_processes( thread, 0 );
|
kill_console_processes( thread, 0 );
|
||||||
debug_exit_thread( thread );
|
debug_exit_thread( thread );
|
||||||
abandon_mutexes( thread );
|
abandon_mutexes( thread );
|
||||||
remove_process_thread( thread->process, thread );
|
|
||||||
wake_up( &thread->obj, 0 );
|
wake_up( &thread->obj, 0 );
|
||||||
if (violent_death) send_thread_signal( thread, SIGTERM );
|
if (violent_death) send_thread_signal( thread, SIGTERM );
|
||||||
cleanup_thread( thread );
|
cleanup_thread( thread );
|
||||||
|
remove_process_thread( thread->process, thread );
|
||||||
release_object( thread );
|
release_object( thread );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user