Rob Shearman : appwiz.cpl: Fix leak of thread and process handles in UninstallProgram.

Alexandre Julliard julliard at winehq.org
Mon Aug 18 10:47:02 CDT 2008


Module: wine
Branch: master
Commit: 0427cf087b98792620860ae9eb1c1ea58a781e0c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0427cf087b98792620860ae9eb1c1ea58a781e0c

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Sun Aug 17 18:26:21 2008 +0100

appwiz.cpl: Fix leak of thread and process handles in UninstallProgram.

---

 dlls/appwiz.cpl/appwiz.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/appwiz.cpl/appwiz.c b/dlls/appwiz.cpl/appwiz.c
index 44bf3b2..ce94863 100644
--- a/dlls/appwiz.cpl/appwiz.c
+++ b/dlls/appwiz.cpl/appwiz.c
@@ -404,8 +404,11 @@ static void UninstallProgram(int id)
 
             if (res)
             {
+                CloseHandle(info.hThread);
+
                 /* wait for the process to exit */
                 WaitForSingleObject(info.hProcess, INFINITE);
+                CloseHandle(info.hProcess);
             }
             else
             {




More information about the wine-cvs mailing list