Module: wine Branch: master Commit: fdde51580d9ea736b2171efd84c9c3eefca81505 URL: http://source.winehq.org/git/wine.git/?a=commit;h=fdde51580d9ea736b2171efd84...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Oct 16 19:45:22 2013 +0200
winex11: Clear the thread data explicitly on detach.
---
dlls/winex11.drv/x11drv_main.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/x11drv_main.c b/dlls/winex11.drv/x11drv_main.c index 7b730ca..a6572ba 100644 --- a/dlls/winex11.drv/x11drv_main.c +++ b/dlls/winex11.drv/x11drv_main.c @@ -609,6 +609,8 @@ static void thread_detach(void) if (data->font_set) XFreeFontSet( data->display, data->font_set ); XCloseDisplay( data->display ); 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 ); } }