James Hawkins : msi: Free the cached streams when closing the database.

Alexandre Julliard julliard at winehq.org
Thu Dec 17 10:37:09 CST 2009


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

Author: James Hawkins <truiken at gmail.com>
Date:   Wed Dec 16 19:05:05 2009 -0800

msi: Free the cached streams when closing the database.

---

 dlls/msi/database.c |    1 +
 dlls/msi/msipriv.h  |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/database.c b/dlls/msi/database.c
index b485b21..32c0e8b 100644
--- a/dlls/msi/database.c
+++ b/dlls/msi/database.c
@@ -57,6 +57,7 @@ static VOID MSI_CloseDatabase( MSIOBJECTHDR *arg )
 
     msi_free(db->path);
     free_cached_tables( db );
+    msi_free_streams( db );
     msi_free_transforms( db );
     msi_destroy_stringtable( db->strings );
     IStorage_Release( db->storage );
diff --git a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h
index 2f8a38c..3b2733b 100644
--- a/dlls/msi/msipriv.h
+++ b/dlls/msi/msipriv.h
@@ -650,6 +650,7 @@ extern void msiobj_unlock(MSIOBJECTHDR *);
 extern void msi_free_handle_table(void);
 
 extern void free_cached_tables( MSIDATABASE *db );
+extern void msi_free_streams( MSIDATABASE *db );
 extern void msi_free_transforms( MSIDATABASE *db );
 extern UINT MSI_CommitTables( MSIDATABASE *db );
 




More information about the wine-cvs mailing list