Commit 6ae1e33a authored by Alexandre Julliard's avatar Alexandre Julliard

winemac: Clear the thread data explicitly on detach.

parent fdde5158
......@@ -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);
}
}
......
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