From 57a6b6fb3837721cfd13969afb3ca11849e73be2 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Thu, 20 May 2010 12:01:35 +0200 Subject: [PATCH] msi: Release the package in MsiGetMode and MsiSetMode. --- dlls/msi/install.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/msi/install.c b/dlls/msi/install.c index cba2dd50fbd..fda49b90d8d 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; }