From e37f56bfbb4e88a9b6d830c8378d43db8e8c3831 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 6 Apr 2014 12:28:25 +0000 Subject: [PATCH] [TASKMGR] Don't leak handle CID #716315 svn path=/trunk/; revision=62646 --- reactos/base/applications/taskmgr/taskmgr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/base/applications/taskmgr/taskmgr.c b/reactos/base/applications/taskmgr/taskmgr.c index 23ccc39fcd3..5fec61407b2 100644 --- a/reactos/base/applications/taskmgr/taskmgr.c +++ b/reactos/base/applications/taskmgr/taskmgr.c @@ -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; }