msi: Delete the view on error.

This commit is contained in:
James Hawkins 2009-03-02 02:33:48 -08:00 committed by Alexandre Julliard
parent 046bcc918c
commit f36e13fd81
1 changed files with 5 additions and 1 deletions

View File

@ -961,7 +961,11 @@ UINT MSI_ParseSQL( MSIDATABASE *db, LPCWSTR command, MSIVIEW **phview,
TRACE("Parse returned %d\n", r);
if( r )
{
*sql.view = NULL;
if (*sql.view)
{
(*sql.view)->ops->delete(*sql.view);
*sql.view = NULL;
}
return sql.r;
}