Hans Leidekker : uninstaller: Fix a leak.

Alexandre Julliard julliard at winehq.org
Thu Apr 7 07:36:46 CDT 2011


Module: wine
Branch: stable
Commit: f488f1af14592d95e30d7f09e8a45119eb8a77e4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f488f1af14592d95e30d7f09e8a45119eb8a77e4

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Fri Dec 24 09:37:51 2010 +0100

uninstaller: Fix a leak.
(cherry picked from commit 458fcf4aa7df0cc8526cee5d1274e4e8310c73b7)

---

 programs/uninstaller/main.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/programs/uninstaller/main.c b/programs/uninstaller/main.c
index f781d3c..5d74ea8 100644
--- a/programs/uninstaller/main.c
+++ b/programs/uninstaller/main.c
@@ -209,8 +209,12 @@ static int FetchFromRootKey(HKEY root)
                 command = HeapAlloc(GetProcessHeap(), 0, uninstlen);
                 RegQueryValueExW(hkeyApp, UninstallCommandlineW, 0, 0, (LPBYTE)command, &uninstlen);
             }
-            else continue;
-
+            else
+            {
+                RegCloseKey(hkeyApp);
+                sizeOfSubKeyName = 255;
+                continue;
+            }
             numentries++;
             entries = HeapReAlloc(GetProcessHeap(), 0, entries, numentries*sizeof(uninst_entry));
             entries[numentries-1].root = root;




More information about the wine-cvs mailing list