msi: Fix a record handle leak.

This commit is contained in:
James Hawkins 2009-12-13 19:36:09 -08:00 committed by Alexandre Julliard
parent d2fe01aa32
commit 37a058208d
1 changed files with 1 additions and 0 deletions

View File

@ -622,6 +622,7 @@ static UINT msi_add_records_to_table(MSIDATABASE *db, LPWSTR *columns, LPWSTR *t
while (MSI_ViewFetch(view, &rec) != ERROR_NO_MORE_ITEMS)
{
r = MSI_ViewModify(view, MSIMODIFY_DELETE, rec);
msiobj_release(&rec->hdr);
if (r != ERROR_SUCCESS)
goto done;
}