Alexandre Julliard : winemac: Clear the thread data explicitly on detach.
Alexandre Julliard
julliard at winehq.org
Wed Oct 16 14:25:50 CDT 2013
Module: wine
Branch: master
Commit: 6ae1e33a17af1298bb451526b1c2a66d399eff9a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6ae1e33a17af1298bb451526b1c2a66d399eff9a
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Oct 16 20:48:49 2013 +0200
winemac: Clear the thread data explicitly on detach.
---
dlls/winemac.drv/macdrv_main.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/winemac.drv/macdrv_main.c b/dlls/winemac.drv/macdrv_main.c
index d27ce94..5317c8b 100644
--- a/dlls/winemac.drv/macdrv_main.c
+++ b/dlls/winemac.drv/macdrv_main.c
@@ -224,6 +224,8 @@ static void thread_detach(void)
if (data->keyboard_layout_uchr)
CFRelease(data->keyboard_layout_uchr);
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);
}
}
More information about the wine-cvs
mailing list