winemac: Clear the thread data explicitly on detach.

This commit is contained in:
Alexandre Julliard 2013-10-16 20:48:49 +02:00
parent fdde51580d
commit 6ae1e33a17
1 changed files with 2 additions and 0 deletions

View File

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