Nikolay Sivov : comdlg32/filedlg: Fix a lookin combo data leak.

Alexandre Julliard julliard at winehq.org
Thu Dec 10 10:00:59 CST 2009


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

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Thu Dec 10 01:35:42 2009 +0300

comdlg32/filedlg: Fix a lookin combo data leak.

---

 dlls/comdlg32/filedlg.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c
index afd02dc..908201d 100644
--- a/dlls/comdlg32/filedlg.c
+++ b/dlls/comdlg32/filedlg.c
@@ -3258,6 +3258,7 @@ static int FILEDLG95_LOOKIN_SearchItem(HWND hwnd,WPARAM searchArg,int iSearchMet
 static void FILEDLG95_LOOKIN_Clean(HWND hwnd)
 {
     FileOpenDlgInfos *fodInfos = GetPropA(hwnd,FileOpenDlgInfosStr);
+    LookInInfos *liInfos = GetPropA(fodInfos->DlgInfos.hwndLookInCB,LookInInfosStr);
     int iPos;
     int iCount = CBGetCount(fodInfos->DlgInfos.hwndLookInCB);
 
@@ -3276,9 +3277,10 @@ static void FILEDLG95_LOOKIN_Clean(HWND hwnd)
     }
 
     /* LookInInfos structure */
+    MemFree(liInfos);
     RemovePropA(fodInfos->DlgInfos.hwndLookInCB,LookInInfosStr);
-
 }
+
 /***********************************************************************
  * FILEDLG95_FILENAME_FillFromSelection
  *




More information about the wine-cvs mailing list