msi [1/3]: Properly delete the columns view

James Hawkins truiken at gmail.com
Mon Jul 23 21:19:15 CDT 2007


Hi,

Changelog:
* Properly delete the columns view.

 dlls/msi/alter.c |    2 +-
 dlls/msi/table.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
James Hawkins
-------------- next part --------------
diff --git a/dlls/msi/alter.c b/dlls/msi/alter.c
index 734aaba..cfb8ab4 100644
--- a/dlls/msi/alter.c
+++ b/dlls/msi/alter.c
@@ -129,7 +129,7 @@ static UINT alter_add_column(MSIALTERVIE
                                  colnum, av->colinfo->column,
                                  av->colinfo->type, (av->hold == 1));
 
-    msiobj_release(&columns->hdr);
+    columns->ops->delete(columns);
     return r;
 }
 
diff --git a/dlls/msi/table.c b/dlls/msi/table.c
index b65494a..745712a 100644
--- a/dlls/msi/table.c
+++ b/dlls/msi/table.c
@@ -1686,7 +1686,7 @@ static UINT TABLE_add_ref(struct tagMSIV
 static UINT TABLE_remove_column(struct tagMSIVIEW *view, LPCWSTR table, UINT number)
 {
     MSITABLEVIEW *tv = (MSITABLEVIEW*)view;
-    MSIRECORD *rec;
+    MSIRECORD *rec = NULL;
     MSIVIEW *columns = NULL;
     UINT row, r;
 
@@ -1713,7 +1713,7 @@ static UINT TABLE_remove_column(struct t
 
 done:
     msiobj_release(&rec->hdr);
-    if (columns) msiobj_release(&columns->hdr);
+    if (columns) columns->ops->delete(columns);
     return r;
 }
 
-- 
1.4.1


More information about the wine-patches mailing list