[3/7] msi: Release the package in MsiGetMode and MsiSetMode.

Hans Leidekker hans at codeweavers.com
Thu May 20 05:01:35 CDT 2010


---
 dlls/msi/install.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/install.c b/dlls/msi/install.c
index cba2dd5..fda49b9 100644
--- a/dlls/msi/install.c
+++ b/dlls/msi/install.c
@@ -721,6 +721,7 @@ BOOL WINAPI MsiGetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode)
         r = TRUE;
     }
 
+    msiobj_release( &package->hdr );
     return r;
 }
 
@@ -774,6 +775,7 @@ UINT WINAPI MsiSetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode, BOOL fState)
         r = ERROR_ACCESS_DENIED;
     }
 
+    msiobj_release( &package->hdr );
     return r;
 }
 
-- 
1.7.0.4







More information about the wine-patches mailing list