taskmgr: Fix handle leaks.
This commit is contained in:
parent
85e2b4d7df
commit
4f18f4d2c3
|
@ -891,7 +891,7 @@ ApplicationPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
UpdateApplicationListControlViewSetting();
|
||||
|
||||
/* Start our refresh thread */
|
||||
CreateThread(NULL, 0, ApplicationPageRefreshThread, NULL, 0, NULL);
|
||||
CloseHandle( CreateThread(NULL, 0, ApplicationPageRefreshThread, NULL, 0, NULL));
|
||||
|
||||
return TRUE;
|
||||
|
||||
|
|
|
@ -343,7 +343,7 @@ PerformancePageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
GraphCtrl_SetPlotColor(&PerformancePageMemUsageHistoryGraph, 0, RGB(255, 255, 0)) ;
|
||||
/* Start our refresh thread */
|
||||
#ifdef RUN_PERF_PAGE
|
||||
CreateThread(NULL, 0, PerformancePageRefreshThread, NULL, 0, NULL);
|
||||
CloseHandle( CreateThread(NULL, 0, PerformancePageRefreshThread, NULL, 0, NULL));
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
@ -483,7 +483,7 @@ ProcessPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
OldProcessListWndProc = (WNDPROC)SetWindowLongPtrW(hProcessPageListCtrl, GWLP_WNDPROC, (LONG_PTR)ProcessListWndProc);
|
||||
|
||||
/* Start our refresh thread */
|
||||
CreateThread(NULL, 0, ProcessPageRefreshThread, NULL, 0, NULL);
|
||||
CloseHandle( CreateThread(NULL, 0, ProcessPageRefreshThread, NULL, 0, NULL));
|
||||
|
||||
return TRUE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue