Ken Thomases : comdlg32: Fix a leak.
Module: wine Branch: master Commit: c2f3c1114f9e597ba6c5385a0449d1d9778add3d URL: http://source.winehq.org/git/wine.git/?a=commit;h=c2f3c1114f9e597ba6c5385a04... Author: Ken Thomases <ken(a)codeweavers.com> Date: Mon Dec 19 21:59:39 2011 -0600 comdlg32: Fix a leak. --- dlls/comdlg32/filedlg.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c index 9b725ba..43df312 100644 --- a/dlls/comdlg32/filedlg.c +++ b/dlls/comdlg32/filedlg.c @@ -1529,8 +1529,7 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd) lstrcpyW(fodInfos->filename,nameBit); *nameBit = 0x00; - if (fodInfos->initdir == NULL) - MemFree(fodInfos->initdir); + MemFree(fodInfos->initdir); fodInfos->initdir = MemAlloc((lstrlenW(tmpBuf) + 1)*sizeof(WCHAR)); lstrcpyW(fodInfos->initdir, tmpBuf); handledPath = TRUE;
participants (1)
-
Alexandre Julliard