msi: Properly release the record.
This commit is contained in:
parent
e62b8c9b99
commit
80894d1c52
|
@ -124,13 +124,14 @@ UINT msi_clone_properties(MSIPACKAGE *package)
|
|||
|
||||
rc = MSI_DatabaseOpenViewW(package->db, Insert, &view2);
|
||||
if (rc != ERROR_SUCCESS)
|
||||
{
|
||||
msiobj_release(&row->hdr);
|
||||
continue;
|
||||
}
|
||||
|
||||
rc = MSI_ViewExecute(view2, row);
|
||||
MSI_ViewExecute(view2, row);
|
||||
MSI_ViewClose(view2);
|
||||
msiobj_release(&view2->hdr);
|
||||
|
||||
if (rc == ERROR_SUCCESS)
|
||||
msiobj_release(&row->hdr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue