Michael Karcher : kernel32: Free profile before reloading.

Alexandre Julliard julliard at winehq.org
Wed Feb 18 10:15:40 CST 2009


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

Author: Michael Karcher <wine at mkarcher.dialup.fu-berlin.de>
Date:   Wed Feb 18 14:36:28 2009 +0100

kernel32: Free profile before reloading.

---

 dlls/kernel32/profile.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/kernel32/profile.c b/dlls/kernel32/profile.c
index e0b709c..1a25031 100644
--- a/dlls/kernel32/profile.c
+++ b/dlls/kernel32/profile.c
@@ -807,6 +807,7 @@ static BOOL PROFILE_Open( LPCWSTR filename, BOOL write_access )
                 {
                     TRACE("(%s): already opened, needs refreshing (mru=%d)\n",
                           debugstr_w(buffer), i);
+                    PROFILE_Free(CurProfile->section);
                     CurProfile->section = PROFILE_Load(hFile, &CurProfile->encoding);
                     CurProfile->LastWriteTime = LastWriteTime;
                 }




More information about the wine-cvs mailing list