mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[DESK]
Fix leaks CID #716336 CID #716337 svn path=/trunk/; revision=62654
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user