msi: Release the package in MsiGetMode and MsiSetMode.

This commit is contained in:
Hans Leidekker 2010-05-20 12:01:35 +02:00 committed by Alexandre Julliard
parent e5dd509901
commit 57a6b6fb38
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}