Commit f45db6ee authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Implement DROP_delete that deletes the drop view. We were leaking the view before.

parent 37a05820
......@@ -78,6 +78,20 @@ static UINT DROP_get_dimensions(struct tagMSIVIEW *view, UINT *rows, UINT *cols)
return ERROR_FUNCTION_FAILED;
}
static UINT DROP_delete( struct tagMSIVIEW *view )
{
MSIDROPVIEW *dv = (MSIDROPVIEW*)view;
TRACE("%p\n", dv );
if( dv->table )
dv->table->ops->delete( dv->table );
msi_free( dv );
return ERROR_SUCCESS;
}
static const MSIVIEWOPS drop_ops =
{
NULL,
......@@ -91,7 +105,7 @@ static const MSIVIEWOPS drop_ops =
DROP_get_dimensions,
NULL,
NULL,
NULL,
DROP_delete,
NULL,
NULL,
NULL,
......
......@@ -2326,7 +2326,6 @@ static UINT TABLE_drop(struct tagMSIVIEW *view)
list_remove(&tv->table->entry);
free_table(tv->table);
TABLE_delete(view);
done:
msiobj_release(&rec->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