[2/3] msi: Avoid a crash on database destruction.

Hans Leidekker hans at codeweavers.com
Fri Sep 17 08:20:07 CDT 2010


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

diff --git a/dlls/msi/database.c b/dlls/msi/database.c
index 748cbfd..3007d48 100644
--- a/dlls/msi/database.c
+++ b/dlls/msi/database.c
@@ -241,7 +241,7 @@ static VOID MSI_CloseDatabase( MSIOBJECTHDR *arg )
     free_cached_tables( db );
     free_streams( db );
     free_transforms( db );
-    msi_destroy_stringtable( db->strings );
+    if (db->strings) msi_destroy_stringtable( db->strings );
     IStorage_Release( db->storage );
     if (db->deletefile)
     {
-- 
1.7.0.4







More information about the wine-patches mailing list