[TASKMGR]

Don't leak handle

CID #716315

svn path=/trunk/; revision=62646
This commit is contained in:
Pierre Schweitzer 2014-04-06 12:28:25 +00:00
parent 35ab776df7
commit e37f56bfbb

View file

@ -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;
}