Author: pschweitzer
Date: Sun Apr 6 12:28:25 2014
New Revision: 62646
URL:
http://svn.reactos.org/svn/reactos?rev=62646&view=rev
Log:
[TASKMGR]
Don't leak handle
CID #716315
Modified:
trunk/reactos/base/applications/taskmgr/taskmgr.c
Modified: trunk/reactos/base/applications/taskmgr/taskmgr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/taskmgr.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/taskmgr.c [iso-8859-1] Sun Apr 6 12:28:25
2014
@@ -130,6 +130,8 @@
SendMessage(hTaskMgr, WM_SYSCOMMAND, SC_RESTORE, 0);
SetForegroundWindow(hTaskMgr);
}
+
+ CloseHandle(hMutex);
return 0;
}
else if (!hMutex)
@@ -175,6 +177,7 @@
/* Save our settings to the registry */
SaveSettings();
PerfDataUninitialize();
+ CloseHandle(hMutex);
return 0;
}