Commit 8a7690c1 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Properly delete the columns view.

parent 05849645
......@@ -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;
}
......
......@@ -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;
}
......
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