msi: Release the package in MsiGetMode and MsiSetMode.
This commit is contained in:
parent
e5dd509901
commit
57a6b6fb38
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue