winex11: Clear the thread data explicitly on detach.
This commit is contained in:
parent
eb5127dfd1
commit
fdde51580d
|
@ -609,6 +609,8 @@ static void thread_detach(void)
|
||||||
if (data->font_set) XFreeFontSet( data->display, data->font_set );
|
if (data->font_set) XFreeFontSet( data->display, data->font_set );
|
||||||
XCloseDisplay( data->display );
|
XCloseDisplay( data->display );
|
||||||
HeapFree( GetProcessHeap(), 0, data );
|
HeapFree( GetProcessHeap(), 0, data );
|
||||||
|
/* clear data in case we get re-entered from user32 before the thread is truly dead */
|
||||||
|
TlsSetValue( thread_data_tls_index, NULL );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue