Mike McCormack : msi: Fix an access after freeing memory.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Nov 21 08:14:47 CST 2006


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

Author: Mike McCormack <mike at codeweavers.com>
Date:   Tue Nov 21 13:47:42 2006 +0900

msi: Fix an access after freeing memory.

---

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

diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 9fe5b8e..44c56f6 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -3389,9 +3389,9 @@ void msi_dialog_destroy( msi_dialog *dia
             DestroyIcon( t->hIcon );
         msi_free( t->tabnext );
         msi_free( t->type );
-        msi_free( t );
         if (t->hDll)
             FreeLibrary( t->hDll );
+        msi_free( t );
     }
 
     /* destroy the list of fonts */




More information about the wine-cvs mailing list