msi: Delete the view on error.
This commit is contained in:
parent
046bcc918c
commit
f36e13fd81
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue