msi: Properly release the record.

This commit is contained in:
James Hawkins 2007-12-11 21:46:32 -06:00 committed by Alexandre Julliard
parent e62b8c9b99
commit 80894d1c52
1 changed files with 6 additions and 5 deletions

View File

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