[2/4] msi: Don't duplicate the table name in CREATE_CreateView.

Hans Leidekker hans at codeweavers.com
Thu May 28 08:03:19 CDT 2009


The table name is tracked in the list attached to the parent query object,
which is destroyed after the view object.

This plugs a leak since the duplicated table name was never freed.

diff --git a/dlls/msi/create.c b/dlls/msi/create.c
index 89d3288..63cd373 100644
--- a/dlls/msi/create.c
+++ b/dlls/msi/create.c
@@ -180,7 +180,7 @@ UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR table,
     for( col = col_info; col; col = col->next )
     {
         if (!col->table)
-            col->table = strdupW(table);
+            col->table = table;
 
         if( !col->temporary )
             temp = FALSE;



More information about the wine-patches mailing list