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

@ -123,14 +123,15 @@ UINT msi_clone_properties(MSIPACKAGE *package)
break; break;
rc = MSI_DatabaseOpenViewW(package->db, Insert, &view2); rc = MSI_DatabaseOpenViewW(package->db, Insert, &view2);
if (rc!= ERROR_SUCCESS) if (rc != ERROR_SUCCESS)
{
msiobj_release(&row->hdr);
continue; continue;
}
rc = MSI_ViewExecute(view2, row); MSI_ViewExecute(view2, row);
MSI_ViewClose(view2); MSI_ViewClose(view2);
msiobj_release(&view2->hdr); msiobj_release(&view2->hdr);
if (rc == ERROR_SUCCESS)
msiobj_release(&row->hdr); msiobj_release(&row->hdr);
} }