mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[TASKMGR]
Don't leak handle CID #716315 svn path=/trunk/; revision=62646
This commit is contained in:
parent
35ab776df7
commit
e37f56bfbb
1 changed files with 3 additions and 0 deletions
|
@ -130,6 +130,8 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
|||
SendMessage(hTaskMgr, WM_SYSCOMMAND, SC_RESTORE, 0);
|
||||
SetForegroundWindow(hTaskMgr);
|
||||
}
|
||||
|
||||
CloseHandle(hMutex);
|
||||
return 0;
|
||||
}
|
||||
else if (!hMutex)
|
||||
|
@ -175,6 +177,7 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
|||
/* Save our settings to the registry */
|
||||
SaveSettings();
|
||||
PerfDataUninitialize();
|
||||
CloseHandle(hMutex);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue