James Hawkins : msi: Delete the view on error.

Alexandre Julliard julliard at winehq.org
Mon Mar 2 09:01:41 CST 2009


Module: wine
Branch: master
Commit: f36e13fd818e3e9208ba05a3b6c730e6b4db4fea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f36e13fd818e3e9208ba05a3b6c730e6b4db4fea

Author: James Hawkins <truiken at gmail.com>
Date:   Mon Mar  2 02:33:48 2009 -0800

msi: Delete the view on error.

---

 dlls/msi/sql.y |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/sql.y b/dlls/msi/sql.y
index f5616ba..425b584 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;
     }
 




More information about the wine-cvs mailing list