Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1271)

Unified Diff: base/threading/platform_thread_win.cc

Issue 75133004: Close duplicated handle on windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/platform_thread_win.cc
diff --git a/base/threading/platform_thread_win.cc b/base/threading/platform_thread_win.cc
index e9752ba21394c671d1d84214e4cd65078bd940f3..ef0fb002849ccf0099a752fd265a609da2f6b11b 100644
--- a/base/threading/platform_thread_win.cc
+++ b/base/threading/platform_thread_win.cc
@@ -76,6 +76,9 @@ DWORD __stdcall ThreadFunc(void* params) {
ThreadIdNameManager::GetInstance()->RemoveName(
platform_handle,
PlatformThread::CurrentId());
+
+ CloseHandle(platform_handle);
zhaoqin 2013/11/28 16:07:33 Actually I am not sure this is the correct solutio
dsinclair 2013/11/28 16:13:40 Right, but the line immediately above: ThreadId
zhaoqin 2013/11/28 16:25:41 I see, my bad.
dsinclair 2013/11/28 16:31:07 I don't think so, ThreadIdNameManager doesn't know
+
return NULL;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698