msi: Properly delete the columns view.

oldstable
James Hawkins 2007-07-23 19:19:15 -07:00 committed by Alexandre Julliard
parent 0584964518
commit 8a7690c151
2 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ static UINT alter_add_column(MSIALTERVIEW *av)
colnum, av->colinfo->column,
av->colinfo->type, (av->hold == 1));
msiobj_release(&columns->hdr);
columns->ops->delete(columns);
return r;
}

View File

@ -1686,7 +1686,7 @@ static UINT TABLE_add_ref(struct tagMSIVIEW *view)
static UINT TABLE_remove_column(struct tagMSIVIEW *view, LPCWSTR table, UINT number)
{
MSITABLEVIEW *tv = (MSITABLEVIEW*)view;
MSIRECORD *rec;
MSIRECORD *rec = NULL;
MSIVIEW *columns = NULL;
UINT row, r;
@ -1713,7 +1713,7 @@ static UINT TABLE_remove_column(struct tagMSIVIEW *view, LPCWSTR table, UINT num
done:
msiobj_release(&rec->hdr);
if (columns) msiobj_release(&columns->hdr);
if (columns) columns->ops->delete(columns);
return r;
}