From f36e13fd818e3e9208ba05a3b6c730e6b4db4fea Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Mon, 2 Mar 2009 02:33:48 -0800 Subject: [PATCH] msi: Delete the view on error. --- dlls/msi/sql.y | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/msi/sql.y b/dlls/msi/sql.y index f5616baa031..425b584ae69 100644 --- a/dlls/msi/sql.y +++ b/dlls/msi/sql.y @@ -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; } -- 2.11.4.GIT