mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 06:54:46 +00:00
msi: Properly delete the columns view.
This commit is contained in:
parent
0584964518
commit
8a7690c151
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue