Eric Pouech : ntdll: Free TLS pointers when exiting thread.

Alexandre Julliard julliard at wine.codeweavers.com
Sat May 27 06:34:38 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 201f46951286801cb0b73b92313c08a41b141889
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=201f46951286801cb0b73b92313c08a41b141889

Author: Eric Pouech <eric.pouech at wanadoo.fr>
Date:   Fri May 26 12:10:41 2006 +0200

ntdll: Free TLS pointers when exiting thread.

---

 dlls/ntdll/loader.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index eaf7cfa..f5022e1 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -1908,6 +1908,7 @@ void WINAPI LdrShutdownThread(void)
     }
 
     RtlLeaveCriticalSection( &loader_section );
+    RtlFreeHeap( GetProcessHeap(), 0, NtCurrentTeb()->ThreadLocalStoragePointer );
 }
 
 




More information about the wine-cvs mailing list