mirror of
https://github.com/reactos/reactos.git
synced 2024-10-08 02:13:56 +00:00
[DESK]
Fix leaks CID #716336 CID #716337 svn path=/trunk/; revision=62654
This commit is contained in:
parent
a322341b4c
commit
abab3274cd
|
@ -288,7 +288,7 @@ AddListViewItems(HWND hwndDlg, PDATA pData)
|
|||
}
|
||||
|
||||
if(!FindNextFile(hFind, &fd))
|
||||
hFind = INVALID_HANDLE_VALUE;
|
||||
break;
|
||||
}
|
||||
|
||||
token = _tcstok(NULL, separators);
|
||||
|
|
|
@ -65,7 +65,10 @@ GetCurrentScreenSaverValue(LPTSTR lpValue)
|
|||
(LPBYTE)lpBuf,
|
||||
&BufSize);
|
||||
if (Ret != ERROR_SUCCESS)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, lpBuf);
|
||||
lpBuf = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue