Commit 80894d1c authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Properly release the record.

parent e62b8c9b
...@@ -123,14 +123,15 @@ UINT msi_clone_properties(MSIPACKAGE *package) ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment