mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 04:13:37 +00:00
[TASKMGR]
Don't leak handle CID #716315 svn path=/trunk/; revision=62646
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user